large changes
This commit is contained in:
22
modules/config/config.go
Normal file
22
modules/config/config.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"errors"
|
||||
)
|
||||
|
||||
var Lib embed.FS
|
||||
var Doc string
|
||||
var Port *int
|
||||
var Color *bool
|
||||
var Static *bool
|
||||
|
||||
type AppConfig struct {
|
||||
App struct {
|
||||
Name string `toml:"name"`
|
||||
Version string `toml:"version"`
|
||||
Authors []string `toml:"authors"`
|
||||
} `toml:"app"`
|
||||
}
|
||||
|
||||
var ErrRouteMiss = errors.New("not found")
|
||||
Reference in New Issue
Block a user