SHARE
TWEET

Untitled

a guest Apr 18th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5. )
  6.  
  7. func main() {
  8.     //multiple variable declaration
  9.     var firstName, lastName, age = "Foo", "Bar", 42
  10.  
  11.     fmt.Println("My first name is: ", firstName)
  12.     fmt.Println("and last name: ", lastName)
  13.     fmt.Println("Age: ", age)
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top