templatefile/pkg/configs/main.go

16 lines
411 B
Go
Raw Normal View History

2022-06-15 17:29:45 +02:00
package configs
type ConfigFile struct {
Destination string `form:"destination" json:"destination"`
Source string `form:"source" json:"source"`
Mod string `form:"mod" json:"mod"`
}
type TemplaterConfig struct {
Name string `json:"Name"`
Config struct {
ConfigFiles []ConfigFile `json:"ConfigFiles"`
Variables map[string]interface{} `form:"-" json:"-"`
} `json:"Config"`
}