Created
March 8, 2020 20:26
-
-
Save DorukUlucay/6b9cd3b489d6969b670f8d81d7363f0c to your computer and use it in GitHub Desktop.
Golang notes
This file contains hidden or 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
//array of struct declaration with value | |
type Api struct { | |
Url string | |
Name string | |
} | |
var apis = []Api{ | |
Api{ | |
Url: "https://api.ipify.org", | |
Name: "My IP", // comma needs to stay | |
}, // this comma needs to stay too | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment