mmmommm / goinit

Generate initial configuration files for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub GitHub CI Status

goinit

Generate initial configuration files for Go.

example usage goinit command

Here are generated by this cli tool.

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.

Usage

$ goinit ${directory_name}

$ goinit example

Option

$ 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}`

About

Generate initial configuration files for Go.

License:MIT License


Languages

Language:Go 100.0%