13 lines
199 B
Go
13 lines
199 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
arr := []byte("some bytes")
|
|
str := string([]byte{'s', 't', 'r', 'i', 'n', 'g'})
|
|
fmt.Println(arr)
|
|
fmt.Println(str)
|
|
}
|
|
|
|
// todo: bytes package?
|