auto generated nested mapping
This commit is contained in:
@ -13,7 +13,6 @@ mkdir -p ${GOPATH}/src
|
||||
mkdir -p ${dir}/bin
|
||||
|
||||
cp -r "${dir}/main.go" "${dir}/buildenv/src/main.go"
|
||||
|
||||
cd ${dir}/buildenv
|
||||
|
||||
go mod init src
|
||||
@ -21,9 +20,12 @@ go mod tidy
|
||||
|
||||
package_name=$(ls ${dir}/buildenv/deps/pkg/mod/git.purser.it/roypur | tr -d "\n")
|
||||
package_dir="${dir}/buildenv/deps/pkg/mod/git.purser.it/roypur/${package_name}"
|
||||
chmod -R 777 ${package_dir}
|
||||
|
||||
rm ${package_dir}/*.go
|
||||
chmod -R 777 "${dir}/buildenv/deps"
|
||||
rm -R "${package_dir}"
|
||||
mkdir -p "${package_dir}"
|
||||
|
||||
cp $(dirname ${dir})/*.go ${package_dir}
|
||||
|
||||
go build -o "${dir}/bin/test" "src/main.go"
|
||||
cd "${dir}"
|
||||
go build -o "${dir}/bin/test"
|
||||
|
@ -11,6 +11,6 @@ func main() {
|
||||
conf.DefineMap("test_map", envconf.TypeInt)
|
||||
conf.Parse()
|
||||
conf.Status()
|
||||
fmt.Println(conf.GetMapMapMapInt("test_map"))
|
||||
fmt.Println(conf.GetMapMapMapMapMapInt("test_map"))
|
||||
fmt.Println(conf.GetInt("this_is_a_map"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user