17 lines
264 B
Go
17 lines
264 B
Go
package config
|
|
|
|
type Config struct {
|
|
NetInterface string
|
|
Htdocs string
|
|
Profile bool
|
|
}
|
|
|
|
func GetConfig() *Config {
|
|
//TODO: Load config from file
|
|
return &Config{
|
|
NetInterface: "127.0.0.1:80",
|
|
Htdocs: "./htdocs",
|
|
Profile: false,
|
|
}
|
|
}
|