Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func CowsInBinary ¶
func CowsInBinary() []string
CowsInBinary returns the list of cowfiles which are in binary. the list is memoized.
Types ¶
type Cow ¶
type Cow struct {
// contains filtered or unexported fields
}
Cow struct!!
type CowFile ¶
type CowFile struct { // Name is name of the cowfile. Name string // BasePath is the path which the cowpath is in. BasePath string // LocationType is the type of COWPATH LocationType LocationType }
CowFile is information of the cowfile.
type CowPath ¶
type CowPath struct { // Name is name of the COWPATH. // If you specified `COWPATH=/foo/bar`, Name is `/foo/bar`. Name string // CowFiles are name of the cowfile which are trimmed ".cow" suffix. CowFiles []string // LocationType is the type of COWPATH LocationType LocationType }
CowPath is information of the COWPATH.
type LocationType ¶
type LocationType int
LocationType indicates the type of COWPATH.
const ( // InBinary indicates the COWPATH in binary. InBinary LocationType = iota // InDirectory indicates the COWPATH in your directory. InDirectory )
type NotFound ¶
type NotFound struct {
Cowfile string
}
NotFound is indicated not found the cowfile.
type Option ¶
Option defined for Options
func DisableWordWrap ¶
func DisableWordWrap() Option
DisableWordWrap disables word wrap. Ignoring width of the ballon.
func Eyes ¶
Eyes specifies eyes The specified string will always be adjusted to be equal to two characters.
func Thoughts ¶
Thoughts Thoughts allows you to specify the rune that will be drawn between the speech bubbles and the cow