Last active
January 2, 2021 16:37
-
-
Save jonathan-fielding/33f1c88bfff56d8510c35df52fde33f4 to your computer and use it in GitHub Desktop.
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" | |
"os" | |
) | |
func main() { | |
var hello = "hello" | |
var name = "world" | |
if len(os.Args[1:]) == 1 { | |
name = os.Args[1] | |
} | |
fmt.Println(hello + " " + name) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment