default.txt 543 B

12345678910111213141516171819202122232425262728293031323334
  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. )
  6. const (
  7. Sunday = iota
  8. numberOfDays // this constant is not exported
  9. )
  10. type Foo interface {
  11. FooFunc(int, float32) (complex128, []int)
  12. }
  13. type Bar struct {
  14. os.File /* multi-line
  15. comment */
  16. PublicData chan int
  17. }
  18. func main() {
  19. ch := make(chan int)
  20. ch <- 1
  21. x, ok := <- ch
  22. ok = true
  23. float_var := 1.0e10
  24. defer fmt.Println('\'')
  25. defer fmt.Println(`exitting now\`)
  26. var fv1 float64 = 0.75
  27. go println(len("hello world!"))
  28. return
  29. }