From b44d805fa11fdb626525f23db0a473b90eaf90e1 Mon Sep 17 00:00:00 2001 From: Miguel Pragier Date: Mon, 26 Oct 2020 15:21:42 -0300 Subject: [PATCH] Update main.go --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 80ce642..e5a5de4 100644 --- a/main.go +++ b/main.go @@ -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() { @@ -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"