feat: basic file handling
This commit is contained in:
4 files changed
+142
-4
No files matched your search
@@ -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