models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectOption

func SelectOption(gitmoji Gitmoji) string

Types

type Commit

type Commit struct {
	Selected string `survey:"gitmoji"`
	Title    string `survey:"title"`
	Message  string `survey:"message"`
	Issue    string `survey:"issue"`
	Gitmoji  *Gitmoji
}

type Directory

type Directory struct {
	Gitmojis []Gitmoji `json:"gitmojis"`
}

func (*Directory) SelectOptions

func (d *Directory) SelectOptions() []string

func (*Directory) SelectedOption

func (d *Directory) SelectedOption(selected string) *Gitmoji

type Gitmoji

type Gitmoji struct {
	Emoji       string `json:"emoji"`
	Entity      string `json:"entity"`
	Code        string `json:"code"`
	Description string `json:"description"`
	Name        string `json:"name"`
}

Jump to

Keyboard shortcuts

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