https://github.com/fazzani/cfcli
Cloudflare cli (goloang)
https://github.com/fazzani/cfcli
cloudflare golang
Last synced: about 1 month ago
JSON representation
Cloudflare cli (goloang)
- Host: GitHub
- URL: https://github.com/fazzani/cfcli
- Owner: Fazzani
- Created: 2020-01-19T15:25:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T09:17:21.000Z (about 6 years ago)
- Last Synced: 2024-06-21T21:05:45.793Z (over 1 year ago)
- Topics: cloudflare, golang
- Language: Go
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Hello Golang
My First Golang program
## TODO
- [x] [Migrate to module](https://blog.golang.org/migrating-to-go-modules)
- Run go version and make sure you're using version 11 or later.
- Move your code outside of GOPATH or set export GO111MODULE=on.
- go mod init [module path]: This will import dependencies from Gopkg.lock.
- go mod tidy: This will remove unnecessary imports, and add indirect ones.
- rm -rf vendor/: Optional step to delete your vendor folder.
- go build: Do a test build to see if it works.
- rm -f Gopkg.lock Gopkg.toml: Delete the obsolete files used for Dep.
Go has imported my dependencies from Dep by reading the Gopkg.lock file and also created a go.mod file.
If you want to keep your vendor folder:
- Run go mod vendor to copy your dependencies into the vendor folder.
- Run go build -mod=vendor to ensure go build uses your vendor folder.
- [ ] [CLI](https://github.com/urfave/cli/blob/master/docs/v2/manual.md)
- [ ] CI/Dockerfile/helm
- [ ] config log // Rolling file and stderr
- [ ] Migrate project to Cobra && Viper
## References
- [setup](https://sourabhbajaj.com/mac-setup/Go/README.html)