feat: basic file handling
This commit is contained in:
14
config/config.go
Normal file
14
config/config.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
type Config struct {
|
||||
NetInterface string
|
||||
Htdocs string
|
||||
}
|
||||
|
||||
func GetConfig() *Config {
|
||||
//TODO: Load config from file
|
||||
return &Config{
|
||||
NetInterface: "127.0.0.1:80",
|
||||
Htdocs: "./htdocs",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user