cache

package
v0.0.0-...-f750d18 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdCache = &cobra.Command{
	Use:   "cache",
	Short: "Create a cache by template",
	Long:  "Create a cache using the cache template. Example: snake cache -name UserCache",
	Run:   run,
}

CmdCache represents the new command.

Functions

func Lcfirst

func Lcfirst(str string) string

首字母小写

func Ucfirst

func Ucfirst(str string) string

首字母大写

Types

type Cache

type Cache struct {
	Name    string
	Path    string
	Service string
	Package string
}

Cache is a cache generator.

func (*Cache) Generate

func (c *Cache) Generate() error

Generate generate a cache template.

Jump to

Keyboard shortcuts

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