OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba10498
)
good
author
HAOYUatHZ
<haoyu@protonmail.com>
Fri, 21 Jun 2019 08:01:34 +0000
(16:01 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Fri, 21 Jun 2019 08:01:34 +0000
(16:01 +0800)
main.go
patch
|
blob
|
history
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