Mastering-Go-Second-Edition/ch02/justPanic.go
2019-01-10 09:18:16 +02:00

14 lines
160 B
Go

package main
import (
"fmt"
"os"
)
func main() {
if len(os.Args) == 1 {
panic("Not enough arguments!")
}
fmt.Println("Thanks for the argument(s)!")
}