23 lines
332 B
Go
23 lines
332 B
Go
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")
|