Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// For more tutorials: https://blog.learngoprogramming.com
|
||||
//
|
||||
// Copyright © 2018 Inanc Gumus
|
||||
// Learn Go Programming Course
|
||||
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
//
|
||||
|
||||
package main
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// CHALLENGE #1
|
||||
// Create a user/password protected program.
|
||||
//
|
||||
// EXAMPLE USER
|
||||
// username: jack
|
||||
// password: 1888
|
||||
//
|
||||
// EXPECTED OUTPUT
|
||||
// go run main.go
|
||||
// Usage: [username] [password]
|
||||
//
|
||||
// go run main.go albert
|
||||
// Usage: [username] [password]
|
||||
//
|
||||
// go run main.go hacker 42
|
||||
// Access denied for "hacker".
|
||||
//
|
||||
// go run main.go jack 6475
|
||||
// Invalid password for "jack".
|
||||
//
|
||||
// go run main.go jack 1888
|
||||
// Access granted to "jack".
|
||||
// ---------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
}
|
Reference in New Issue
Block a user