state mutex

This commit is contained in:
Mark McGranaghan
2012-10-01 07:58:21 -07:00
parent 39c27a6763
commit ebec3473f2
68 changed files with 6 additions and 7 deletions

12
src/051-bytes/bytes.go Normal file
View File

@@ -0,0 +1,12 @@
// ## Bytes
package main
import "fmt"
func main() {
arr := []byte("some bytes")
str := string([]byte{'a', ' ', 's', 't', 'r', 'i', 'n', 'g'})
fmt.Println(arr)
fmt.Println(str)
}