diff --git a/cmd/twister/config.toml b/cmd/twister/config.toml index e69de29..881bbe6 100644 --- a/cmd/twister/config.toml +++ b/cmd/twister/config.toml @@ -0,0 +1,2 @@ +[server] +address = "127.0.0.1:8000" diff --git a/cmd/twister/main.go b/cmd/twister/main.go index 307b118..021c70e 100644 --- a/cmd/twister/main.go +++ b/cmd/twister/main.go @@ -11,7 +11,7 @@ var ( //go:embed config.toml content []byte - version = "0.1.0" + version = "0.1.1" ) func main() { diff --git a/config/config.go b/config/config.go index 75e4f02..af4db26 100644 --- a/config/config.go +++ b/config/config.go @@ -1,6 +1,12 @@ package config -// Config is a configuration +// Configuration type Config struct { Version string + *Server `toml:"server"` +} + +// Server config +type Server struct { + Address string }