stackctl

command
v1.0.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

stackctl

install

  • release binary
  • go get
    • go get -u github.com/stack-labs/stack/util/stackctl

example

  • 创建service
stackctl new github.com/stack-labs/example --alias example -type service --gopath
  • 创建api
stackctl new github.com/stack-labs/example-api --alias example -type api --gopath
  • 修改 FIXME 内容
    • 替换example-apipath/to/service/proto/examplegithub.com/stack-labs/example/proto/example
  • 本地环境用go.modreplace添加github.com/stack-labs/example
module github.com/stack-labs/example-api

go 1.14

replace github.com/stack-labs/example v1.0.0 => ../example

require (
	github.com/stack-labs/example v1.0.0
)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
new
Package new generates stack service templates
Package new generates stack service templates

Jump to

Keyboard shortcuts

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