builtin

package
v3.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 12 Imported by: 5 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenCmdCode = &gcli.Command{
	Name: "gen-cmd",
	Desc: "quick generate gcli command code",
}

GenCmdCode command TODO

View Source
var GenEmojiMap = &gcli.Command{
	Name:    "gen-emojis",
	Aliases: []string{"gen-emj"},

	Func: gem.run,

	Desc: "fetch emoji codes form data source url, then generate a go file.",

	Config: func(c *gcli.Command) {
		gem.c = c
		c.StrOpt(
			&gem.source, "source", "s", "gemoji",
			"the emoji data source, allow: muan, gemoji, unicode",
		)
		c.StrOpt(&gem.saveDir, "dir", "d", "./", "the generated go file save `DIR` path")
		c.BoolOpt(&gem.onlyGen, "onlyGen", "", false, "whether only generate go file from exists emoji data file")
	},
	Help: `source allow:
 muan - https://raw.githubusercontent.com/muan/emoji/gh-pages/javascripts/emojilib/emojis.json
 gemoji - https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json
 unicode - https://unicode.org/Public/emoji/11.0/emoji-test.txt
`,
}

GenEmojiMap create

Functions

func GenAutoComplete

func GenAutoComplete(fns ...func(c *gcli.Command)) *gcli.Command

GenAutoComplete create command

func GenDoc added in v3.8.0

func GenDoc(fns ...func(c *gcli.Command)) *gcli.Command

GenDoc create a command to export application commands documentation(markdown/man).

参照 GenAutoComplete 范式: app 添加后即可 `./cliapp gendoc -f md -o ./docs` 导出文档。

Types

type Gemoji

type Gemoji struct {
	Aliases     []string `json:"aliases"`
	Description string   `json:"description"`
	Emoji       string   `json:"emoji"`
	Tags        []string `json:"tags"`
}

Gemoji definition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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