Skip to content

Instantly share code, notes, and snippets.

@Nishan8583
Created March 19, 2019 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nishan8583/5b57678a2bbdd2c89cd245b25897b11a to your computer and use it in GitHub Desktop.
Save Nishan8583/5b57678a2bbdd2c89cd245b25897b11a to your computer and use it in GitHub Desktop.
package main;
import (
"fmt";
"os";
"bufio";
)
func main() {
fmt.Print("Enter Password: ");
user_input,_,err := bufio.NewReader(os.Stdin).ReadLine();
if err != nil {
fmt.Println("Something is wrong with your computer, ",err);
}
if string(user_input) == "The anser to life is i don't give a fuck" {
fmt.Println("You Cracked it, A Hero is born");
} else {
fmt.Println("Don't Worry, Relax, Chill and Try harder");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment