Un cours pour se lancer dans la programmation avec le langage Go (golang).
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

55 rindas
649 B

  1. package main
  2. import (
  3. "fmt"
  4. "math"
  5. )
  6. var User string = "E2L !"
  7. type person struct {
  8. int
  9. }
  10. type aint int
  11. const (
  12. BigConst = math.MaxFloat64 * math.MaxFloat64
  13. data aint = 10
  14. )
  15. const (
  16. a0 = iota // 0
  17. a1 = iota // 1
  18. a2 = iota // 2
  19. a3 = iota // 3
  20. )
  21. const (
  22. b0 = iota // 0
  23. b1 // 1
  24. b2 // 2
  25. b3 // 3
  26. )
  27. const (
  28. c0 = iota // 0
  29. c1 = 43
  30. c2 = 75
  31. c3 = iota // 3
  32. )
  33. const d0 = iota //0
  34. const d1 = iota //0
  35. const d2 = iota //0
  36. const d3 = iota //0
  37. func main() {
  38. fmt.Println(a0, a1, a2, a3)
  39. fmt.Println(b0, b1, b2, b3)
  40. fmt.Println(c0, c1, c2, c3)
  41. fmt.Println(d0, d1, d2, d3)
  42. fmt.Println("Vive " + User);
  43. }