initial commit

main v1.0.0
writerpass 1 month ago
parent 6be4027959
commit c61fa68041

@ -1,4 +1,4 @@
package main
package config
type ConfigContainerType string

@ -1,4 +1,4 @@
package main
package config
import (
"encoding/json"

@ -1,4 +1,4 @@
package main
package config
import (
"log"

@ -1,6 +1,9 @@
package main
import "log"
import (
"gitea.v39.writerpass.top/Public/json-configure-golang/config"
"log"
)
type AppConfig struct {
AppName string `json:"app_name"`
@ -11,9 +14,9 @@ func main() {
configure := AppConfig{
AppName: "test-app-name",
}
cc := ConfigConfigure{
cc := config.ConfigConfigure{
AppName: "json-configure",
ContainerType: BesidesExe,
ContainerType: config.BesidesExe,
ConfigureFile: "config.json",
}
cc.Check()

Loading…
Cancel
Save