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 HapesInBinary ¶ added in v2.0.7
func HapesInBinary() []string
HapesInBinary returns the list of hapefiles which are in binary. the list is memoized.
Types ¶
type Hape ¶ added in v2.0.7
type Hape struct {
// contains filtered or unexported fields
}
Hape struct!!
func (*Hape) Balloon ¶ added in v2.0.7
Balloon to get the balloon and the string entered in the balloon.
func (*Hape) Clone ¶ added in v2.0.7
Clone returns a copy of hape.
If any options are specified, they will be reflected.
type HapeFile ¶ added in v2.0.7
type HapeFile struct { // Name is name of the hapefile. Name string // BasePath is the path which the hapepath is in. BasePath string // LocationType is the type of COWPATH LocationType LocationType }
HapeFile is information of the hapefile.
type HapePath ¶ added in v2.0.7
type HapePath struct { // Name is name of the COWPATH. // If you specified `COWPATH=/foo/bar`, Name is `/foo/bar`. Name string // HapeFiles are name of the hapefile which are trimmed ".hape" suffix. HapeFiles []string // LocationType is the type of COWPATH LocationType LocationType }
HapePath 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 {
Hapefile string
}
NotFound is indicated not found the hapefile.
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 hape