Created
April 4, 2017 09:38
-
-
Save christophberger/efca9fba95fa1c3bdafcac7d9b2177a7 to your computer and use it in GitHub Desktop.
Code snippet from github.com/appliedgo/tui: main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
if len(os.Args) <= 1 { | |
log.Println("Usage: go run tui.go [termui|gocui]") | |
return | |
} | |
if os.Args[1] == "termui" { | |
runTermui() | |
return | |
} | |
if os.Args[1] == "gocui" { | |
runGocui() | |
return | |
} | |
log.Println("No such option:", os.Args[0]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment