Mirror of my golang-httpd-test project on gitlab
9.7K

The purpose of this project is purely for learning how go build interfaces and a HTTPD API server in GOLANG.
I do like go, because the packaging system works with git seamlessly (because decentralization!)
Eventually, I'd like to use this for querying external based libraries (such as lnd / bitcoind), and utilizing a config file.
common: contains some useful utilities.pineclient : contains the pineclient package for reading stuff from the PINEphone.bitcoind : contains bitcoind client package for reading bitcoindbtcprice : contains btc price utilitiesgo.mod : contains a list of all the go modules and defines the base package name.main.go : Defines the entry point which binds all the modules together.VERSION - defines the version to be timestamped inside the --version identifier in the binaryVER_GO - defines the version for GO to be used (default: 1.15)VER_ALPINE - defines the version of alpine to be used. Must also support the version of go or it will fail (default: 3.12)TAGS - defines any build tags to be used.Here is an example of building this project in docker (on your current environment). You may substitute this with buildx build which uses very similar parameters.
docker build --build-arg VERSION=0.0.1 \
--build-arg VER_GO=1.15 \
--build-arg VER_ALPINE=3.12 \
--build-arg TAGS="static_build" \
-t nolim1t/httpd:0.0.1 \
.
Dockerfile supportContent type
Image
Digest
Size
7 MB
Last updated
almost 6 years ago
docker pull nolim1t/golang-httpd-test