create

package
v0.1.68 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package create /*

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{Use: "create",
	Long: `create is for create a project.
modName will use as the dir name and in go.mod as module name`,
	Args: cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		modName := args[0]
		if err := createProjectDir(modName); err != nil {
			cobraErr.Err(cmd, err.Error())
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
* 复制.tpl文件到
* 复制.tpl文件到

Jump to

Keyboard shortcuts

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