Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpragier authored Oct 26, 2020
1 parent 0c5b97a commit b44d805
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ func init() {
println("check stdout! this routine runs first. Boolean global variable is now ", globalVariable)
}

func returnTwoValues()(int,int){
return 10,20
}

// variablesAndSimpleTypes demonstrates all the possible ways to declare and initialize
// variables and constants of simple ( not struct ) types
func variablesAndSimpleTypes() {
Expand All @@ -35,6 +39,7 @@ func variablesAndSimpleTypes() {
// The lines above only executes from GO 1.13 ( and later )
intVar = 0b00001111 // int variable declared as binary literal
integerHexadecimal = 0x9a
_,x:=returnTwoValues()
)

var strA = "string variable declared with 'var' keyword"
Expand Down

0 comments on commit b44d805

Please sign in to comment.