Files
learngo/06-variables/06-project-greeter/exercises/03-print-your-name/main.go

38 lines
855 B
Go
Raw Normal View History

2018-10-13 23:30:21 +03:00
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
2019-10-30 19:34:44 +03:00
// For more tutorials : https://learngoprogramming.com
// In-person training : https://www.linkedin.com/in/inancgumus/
// Follow me on twitter: https://twitter.com/inancgumus
2018-10-13 23:30:21 +03:00
package main
// ---------------------------------------------------------
2018-10-27 16:27:36 +03:00
// EXERCISE: Print Your Name
//
2018-10-13 23:30:21 +03:00
// Get it from the first command-line argument
//
// INPUT
// Call the program using your name
//
// EXPECTED OUTPUT
// It should print your name
//
// EXAMPLE
// go run main.go inanc
2018-10-27 16:27:36 +03:00
//
// inanc
2018-10-13 23:30:21 +03:00
//
// BONUS: Make the output like this:
2018-10-27 16:27:36 +03:00
//
2018-10-13 23:30:21 +03:00
// go run main.go inanc
2018-10-27 16:27:36 +03:00
// Hi inanc
// How are you?
2018-10-13 23:30:21 +03:00
// ---------------------------------------------------------
func main() {
// get your name from the command-line
// and print it
}