go-sail

command module
v0.0.0-...-51f4ea3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 2 Imported by: 0

README

go-sail cli

Installation
go install github.com/keepchen/go-sail/cli/cmd/go-sail@latest
Usage
  • Init project
go-sail init -v ${goVersion} -d ${workDir} -n ${appName} -s ${serviceName}  

# example
go-sail init -v 1.17 -d /var/www/kupo-ha -n pets -s corgi
Finish

A golang project will be created,structures like this:

pets
├── cmd
│   ├── corgi.go
│   └── root.go
├── go.mod
├── go.sum
├── logs
│   └── running.log
├── main.go
└── pkg
    ├── app
    │   └── corgi
    ├── common
    ├── constants
    ├── lib
    └── utils
  • Add new service (sub application)
go-sail add -v ${goVersion} -d ${workDir} -n ${appName} -s ${serviceName}  

# example
go-sail add -v 1.17 -d /var/www/kupo-ha -n pets -s bourne

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL