This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@Date of creation : 05 Dec 2016. | |
@Aim of program : To allocate storage for data of type int8 using pointer. | |
@Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ "Date of creation" => "07 Dec 2016 (Started after 06:45 am)" } | |
{ "Aim of program" => "To use 3 different forms of for loop" } | |
{ "Coded by" => "Rishikesh Agrawani" } | |
{ "Go version" => "1.7" } | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@Date of creation : 24 November 2016. | |
@Aim of program : To check the availability status of keys in MAP. | |
@Go version : 1.7.1 [go version command(on MAC )prints -> go version go1.7.1 darwin/amd64] | |
@Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@Date of creation : 05 Dec 2016. | |
@Aim of program : To convert a string of digits to an integer. | |
@Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" | |
import "strconv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@Date of creation : 05 Dec 2016. | |
@Aim of program : To allocate storage for data of type int8 using pointer. | |
@Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ "Date of creation" => "07 Dec 2016 (Started after 09:51 am)" } | |
{ "Aim of program" => "Marshalling JSON object" } | |
{ "Coded by" => "Rishikesh Agrawani" } | |
{ "Go version" => "1.7" } | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
showAllParamsOfAnyTypes("Golang",2007,[]string{"Robert Griesemer","Rob Pike", | |
"Ken ThThompsson"}) | |
showAllParamsOfIntType(12,34,45,67,45) //Passinng 5 parameters | |
showAllParamsOfIntType(23,45,75) //Passing 3 parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
{ "Date of creation" => "07 Dec 2016 (Started after 07:35 am)" } | |
{ "Aim of program" => "To use for loop on maps in 3 ways" } | |
{ "Coded by" => "Rishikesh Agrawani" } | |
{ "Go version" => "1.7" } | |
*/ | |
package main | |
import "fmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Date of creation : 09/12/2016. | |
* Aim of program : To print the system time and decorate it. | |
* Go version : 1.7 | |
* Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" | |
import "time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@Date of creation : 06 Dec 2016. | |
@Aim of program : Checking operator precedence. | |
@Coded by : Rishikesh Agrawani. | |
*/ | |
package main | |
import "fmt" | |
func main(){ |
OlderNewer