package main import( "os" "log" ) func main() { // Parse command line var args = os.Args if len(args) < 2 { log.Fatal("Not enough arguments.") } var modeFlag = args[1] args = args[2:] switch modeFlag { case "compile": // Call main compile function with args compile(args) case "extract": log.Fatal("The extract feature is not implemented yet.") default: log.Fatal("You should call gowllvm with a valid mode.") } }