emoji

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* @Author : Lovelace * @Github : https://github.com/lovelacelee * @Date : 2022-06-16 14:06:05 * @LastEditTime : 2022-09-02 20:08:11 * @LastEditors : Lovelace * @Description : git emoji * @FilePath : /internal/emoji/emoji.go * Copyright 2022 Lovelace, All Rights Reserved. * * Only some emojis are supported. For more info: https://gitmoji.dev/

Index

Constants

This section is empty.

Variables

View Source
var Emojis = []Emoji{
	{Emoji: "💥", Code: ":boom:", Name: []string{"default", "Introduce", "changes"}},
	{Emoji: "🎉", Code: ":tada:", Name: []string{"首次提交", "first", "commit"}},
	{Emoji: "🆕", Code: ":new:", Name: []string{"新功能", "new"}},
	{Emoji: "🔖", Code: ":bookmark:", Name: []string{"版本", "bookmark", "release"}},
	{Emoji: "🐛", Code: ":bug:", Name: []string{"问题", "bug"}},
	{Emoji: "🚧", Code: ":construction:", Name: []string{"构建", "build"}},
	{Emoji: "✅", Code: ":white_check_mark:", Name: []string{"检查", "check", "test", "pass"}},
	{Emoji: "🚑", Code: ":ambulance:", Name: []string{"紧急", "emergency"}},
	{Emoji: "⬇️", Code: ":arrow_down:", Name: []string{"回退", "downgrade"}},
	{Emoji: "⬆️", Code: ":arrow_up:", Name: []string{"升级", "upgrade"}},
	{Emoji: "🌐", Code: ":globe_with_meridians:", Name: []string{"语言", "language"}},
	{Emoji: "💄", Code: ":lipstick:", Name: []string{"界面", "ui"}},
	{Emoji: "🎬", Code: ":clapper:", Name: []string{"演示", "示例", "example"}},
	{Emoji: "🚨", Code: ":rotating_light:", Name: []string{"警告", "warning"}},
	{Emoji: "🔧", Code: ":wrench:", Name: []string{"配置", "settings", "cfg", "config"}},
	{Emoji: "➕", Code: ":heavy_plus_sign:", Name: []string{"新增", "add"}},
	{Emoji: "➖", Code: ":heavy_minus_sign:", Name: []string{"移除", "remove"}},
	{Emoji: "⚡️", Code: ":zap:", Name: []string{"效率", "performance"}},
	{Emoji: "📈", Code: ":chart_with_upwards_trend:", Name: []string{"分析", "analysis"}},
	{Emoji: "🚀", Code: ":rocket:", Name: []string{"速度", "性能", "提升", "speed"}},
	{Emoji: "📝", Code: ":memo:", Name: []string{"文档", "doc", "document", "documents", "help"}},
	{Emoji: "🔨", Code: ":hammer:", Name: []string{"重构", "rebuild"}},
	{Emoji: "🎨", Code: ":art:", Name: []string{"格式化", "format"}},
	{Emoji: "✏️", Code: ":pencil2:", Name: []string{"修复", "fix", "repair"}},
	{Emoji: "🔒", Code: ":lock:", Name: []string{"安全", "security", "safety"}},
	{Emoji: "🏁", Code: ":checkered_flag:", Name: []string{"发布", "flag"}},
	{Emoji: "🐧", Code: ":penguin:", Name: []string{"linux"}},
	{Emoji: "💻", Code: ":computer:", Name: []string{"windows"}},
	{Emoji: "🍎", Code: ":apple:", Name: []string{"mac"}},
	{Emoji: "🐳", Code: ":whale:", Name: []string{"docker"}},
	{Emoji: "🔥", Code: ":fire:", Name: []string{"hot"}},
	{Emoji: "✨", Code: ":sparkles:", Name: []string{"新特性", "feature"}},
	{Emoji: "🔐", Code: ":closed_lock_with_key:", Name: []string{"secrets"}},
	{Emoji: "🚨", Code: ":rotating_light:", Name: []string{"compiler", "compiling"}},
	{Emoji: "💚", Code: ":green_heart:", Name: []string{"ci", "continuous", "integration"}},
	{Emoji: "📌", Code: ":pushpin:", Name: []string{"specific", "version"}},
	{Emoji: "♻️", Code: ":recycle:", Name: []string{"refactor", "recycle"}},
	{Emoji: "💩", Code: ":poop:", Name: []string{"damn", "bad"}},
	{Emoji: "⏪️", Code: ":rewind:", Name: []string{"revert", "restore"}},
	{Emoji: "🔀", Code: ":twisted_rightwards_arrows:", Name: []string{"merge", "branch"}},
	{Emoji: "📦️", Code: ":package:", Name: []string{"pack", "dist"}},
	{Emoji: "📄", Code: ":page_facing_up:", Name: []string{"license"}},
	{Emoji: "💡", Code: ":bulb:", Name: []string{"comment", "note"}},
	{Emoji: "💬", Code: ":speech_balloon:", Name: []string{"chat"}},
	{Emoji: "🚩", Code: ":triangular_flag_on_post:", Name: []string{"flags", "重大", "important"}},
	{Emoji: "🧑‍💻", Code: ":technologist:", Name: []string{"tech", "improve", "experience"}},
	{Emoji: "🏷️", Code: "Add or update types.", Name: []string{"tag"}},

} // end of var Emojis

Functions

func EmojiFilter added in v1.0.5

func EmojiFilter(s string) string

Return match emoji

func Message

func Message(message string) string

Types

type Emoji

type Emoji struct {
	// Emoji is the description of the emoji.
	Emoji string
	// Code is the code of the emoji.
	Code string
	// Name is the name of the emoji.
	Name []string

} // end of type Emoji

func (*Emoji) GetName

func (e *Emoji) GetName() []string

func (*Emoji) String

func (e *Emoji) String() string

Jump to

Keyboard shortcuts

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