Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Go has many was of displaying text into a console
- package main
- /*Bracket is present to import repeatedly without having to type import every time
- *Example
- *import (
- * "fmt"
- * "net"
- * "strconv"
- *)
- */
- import (
- "fmt"
- )
- //Example of a go method
- func world() {
- fmt.Println(" World")
- }
- func main() {
- fmt.Print("Hello")
- world()
- print("Hello")
- world()
- fmt.Printf("Hello")
- world()
- fmt.Println("Hello World")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement