Compare commits
No commits in common. "73278439b09d1ccc667ed5e15e2c46b080a7fd6c" and "179666c8f9482962d0b58528a3a302f706396e8e" have entirely different histories.
73278439b0
...
179666c8f9
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
tests/buildenv/*
|
||||
tests/bin/*
|
@ -1,6 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
go fmt *.go
|
||||
go fmt tests/*.go
|
||||
|
||||
git add *.go tests/*.go
|
||||
git add tests/*.go
|
||||
git add *.go
|
||||
|
@ -1,22 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
dir=$(dirname $(realpath $0))
|
||||
export GO111MODULE=on
|
||||
export GOPROXY=direct
|
||||
export GOPATH=${dir}/buildenv/deps
|
||||
|
||||
mkdir -p ${dir}/buildenv
|
||||
chmod -R 755 ${dir}/buildenv
|
||||
rm -rf ${dir}/buildenv
|
||||
|
||||
mkdir -p "${dir}/buildenv/src"
|
||||
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
|
||||
go mod tidy
|
||||
|
||||
go build -o "${dir}/bin/test" "src/main.go"
|
@ -1,15 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.purser.it/roypur/envconf"
|
||||
)
|
||||
|
||||
func main() {
|
||||
conf := envconf.NewConfig()
|
||||
conf.Define("this_is_a_map", envconf.FixedHex(22))
|
||||
conf.Parse()
|
||||
conf.Status()
|
||||
|
||||
fmt.Println(conf.GetHex("this_is_a_map"))
|
||||
}
|
Loading…
Reference in New Issue
Block a user