config.go 379 B

123456789101112131415161718
  1. // Package config provides the main configuration
  2. package config
  3. const (
  4. DefaultListenHTTP = ":80"
  5. )
  6. // Config is the main config struct for the application. Use New to instantiate a default config struct.
  7. type Config struct {
  8. ListenHTTP string
  9. }
  10. // New instantiates a default new config
  11. func New(listenHTTP string) *Config {
  12. return &Config{
  13. ListenHTTP: listenHTTP,
  14. }
  15. }