Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //the fmt package has various printing functions, such as Printf, Fprint, Println
  2. //Println doesn't take a format string, but Printf does.
  3.  
  4. fmt.Println("Hello 23")
  5. fmt.Printf("Hello %d", 23)
  6.  
  7. //The catchall format is %v, so you don't need to specify a type of value.
  8.  
  9. fmt.Printf("Hello %v", 23)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement