|
@@ -44,7 +44,13 @@ the_basics :: proc() {
|
|
fmt.println("\n# the basics")
|
|
fmt.println("\n# the basics")
|
|
|
|
|
|
{ // The Basics
|
|
{ // The Basics
|
|
- fmt.println("Hellope")
|
|
|
|
|
|
+
|
|
|
|
+ // os.args holds the path to the current executable and any arguments passed to it.
|
|
|
|
+ if len(os.args) == 1 {
|
|
|
|
+ fmt.printf("Hellope from %v.\n", os.args[0])
|
|
|
|
+ } else {
|
|
|
|
+ fmt.printf("%v, %v! from %v.\n", os.args[1], os.args[2], os.args[0])
|
|
|
|
+ }
|
|
|
|
|
|
// Lexical elements and literals
|
|
// Lexical elements and literals
|
|
// A comment
|
|
// A comment
|