diff options
author | Emile <hanemile@protonmail.com> | 2020-02-22 16:04:17 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-22 16:04:17 +0100 |
commit | 9705b67a12bbfcd0706843a0e24ec8eed19a7a79 (patch) | |
tree | b684486736aff11c7a09135a1635f2f1c4cdc6b5 | |
parent | c91e6b133895a40871013574166cf385c3226cc3 (diff) |
define a basci config
-rw-r--r-- | src/config.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/config.go b/src/config.go new file mode 100644 index 0000000..15ac082 --- /dev/null +++ b/src/config.go @@ -0,0 +1,17 @@ +package main + +import "flag" + +func parseConfig() Config { + verbose = flag.Bool("v", false, "verbose output") + flag.Parse() + + config := Config{ + Arch: "x86", + Bits: 32, + Memsize: 1024, + MaxProgSize: 64, + } + + return config +} |