project

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options Options) error

New crate a new project

func NewAPIProject

func NewAPIProject(options APIOptions) error

NewAPIProject create a new API project

func NewGRPCProject

func NewGRPCProject() error

NewGRPCProject create a new gRPC project

Types

type APIOptions

type APIOptions struct {
	Name    string `json:"name"`     // project name
	Dir     string `json:"dir"`      // project dir
	ModPath string `json:"mod_path"` // go module path
}

APIOptions api project options

type Options

type Options struct {
	Name     string // project name
	Type     string // project type: API、gRPC
	IsForced bool   // forced new project
}

Options new project options

Jump to

Keyboard shortcuts

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