OSDN Git Service

good
authorHAOYUatHZ <haoyu@protonmail.com>
Fri, 21 Jun 2019 08:01:34 +0000 (16:01 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Fri, 21 Jun 2019 08:01:34 +0000 (16:01 +0800)
main.go

diff --git a/main.go b/main.go
index bf11406..8895799 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,7 +1,17 @@
 package main
 
+import (
+       "fmt"
+)
+
 func main() {
+       bs := []byte{0}
+       inner(bs)
+       fmt.Println(bs)
+}
 
+func inner(bs []byte) {
+       bs[0] = byte(1)
 }
 
 // # DONE