fes

Free Easy Site
Log | Files | Refs | README | LICENSE

config.go (367B)


      1 package config
      2 
      3 import (
      4 	"embed"
      5 	"errors"
      6 )
      7 
      8 var Lib embed.FS
      9 var Doc string
     10 var Port *int
     11 var Color *bool
     12 var Static *bool
     13 var Docker *bool
     14 var Verbose *bool
     15 
     16 type AppConfig struct {
     17 	App struct {
     18 		Name    string   `toml:"name"`
     19 		Version string   `toml:"version"`
     20 		Authors []string `toml:"authors"`
     21 	} `toml:"app"`
     22 }
     23 
     24 var ErrRouteMiss = errors.New("not found")