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