fork download
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. )
  6.  
  7. func main() {
  8. var herp []byte
  9. herp = string.Bytes("\u0100")
  10. fmt.Println(herp)
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.go:9: (string).Bytes undefined (type string has no field Bytes)
stdout
Standard output is empty