Advertisement
cwchen

[Go] Hello World in function

Sep 30th, 2017
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.13 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5. )
  6.  
  7. func hello() {
  8.     fmt.Println("Hello World")
  9. }
  10.  
  11. func main() {
  12.     hello()
  13.     hello()
  14.     hello()
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement