initial commit
This commit is contained in:
@@ -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"
|
9
main.go
9
main.go
@@ -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()
|
||||
|
Reference in New Issue
Block a user