https://github.com/mmmommm/goinit
Generate initial configuration files for Go.
https://github.com/mmmommm/goinit
cli go initialization
Last synced: about 1 month ago
JSON representation
Generate initial configuration files for Go.
- Host: GitHub
- URL: https://github.com/mmmommm/goinit
- Owner: mmmommm
- License: mit
- Created: 2021-11-18T07:28:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-08T05:16:57.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T03:25:50.016Z (over 1 year ago)
- Topics: cli, go, initialization
- Language: Go
- Homepage:
- Size: 2.12 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


# goinit
Generate initial configuration files for Go.

Here are generated by this cli tool.
- [main.go](https://github.com/mmmommm/goinit/blob/main/cmd/example/main.go)
- [main_test.go](https://github.com/mmmommm/goinit/blob/main/cmd/example/main_test.go)
- [README.md](https://github.com/mmmommm/goinit/blob/main/cmd/example/README.md)
- [LICENSE](https://github.com/mmmommm/goinit/blob/main/cmd/example/LICENSE)
- [.github/workflows/lint.yml](https://github.com/mmmommm/goinit/blob/main/cmd/example/lint.yml)
- [.github/workflows/test.yml](https://github.com/mmmommm/goinit/blob/main/cmd/example/test.yml)
- [.gitignore](https://github.com/mmmommm/goinit/blob/main/cmd/example/.gitignore)
- [.golangci.yml](https://github.com/mmmommm/goinit/blob/main/cmd/example/.golangci.yml)
## Required
- Go 1.16~
# Installation
```
$ go install github.com/mmmommm/goinit@latest
```
## MacOS
If you want to install on MacOS, you can use Homebrew.
```
brew install mmmommm/tap/goinit
```
#### upgrade
```
brew upgrade mmmommm/tap/goinit
```
## Windows, Linux etc...
Download the binary from [here](https://github.com/mmmommm/goinit/releases/tag/v0.1.4).
## Usage
```sh
$ goinit ${directory_name}
$ goinit example
```
## Option
```sh
$ goinit ${directory_name} -m ${package_name}
$ goinit example -m github.com/mmmommm/example
```
this option run `go mod init github.com/mmmommm/example`
## After run goinit
```
go run main.go
curl localhost:8080/Go
```
And then response this sentence.
>Hi there, I love Go!
open LICENSE file and rewrite ${your_account_name}
```
Copyright (c) 2021 ${your_account_name}`
```