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 BonesInBinary ¶ added in v2.0.7
func BonesInBinary() []string
BonesInBinary returns the list of bonefiles which are in binary. the list is memoized.
Types ¶
type Bone ¶ added in v2.0.7
type Bone struct {
// contains filtered or unexported fields
}
Bone struct!!
func (*Bone) Balloon ¶ added in v2.0.7
Balloon to get the balloon and the string entered in the balloon.
func (*Bone) Clone ¶ added in v2.0.7
Clone returns a copy of bone.
If any options are specified, they will be reflected.
type BoneFile ¶ added in v2.0.7
type BoneFile struct { // Name is name of the bonefile. Name string // BasePath is the path which the bonepath is in. BasePath string // LocationType is the type of BONEPATH LocationType LocationType }
BoneFile is information of the bonefile.
type BonePath ¶ added in v2.0.7
type BonePath struct { // Name is name of the BONEPATH. // If you specified `BONEPATH=/foo/bar`, Name is `/foo/bar`. Name string // BoneFiles are name of the bonefile which are trimmed ".bone" suffix. BoneFiles []string // LocationType is the type of BONEPATH LocationType LocationType }
BonePath is information of the BONEPATH.
type LocationType ¶
type LocationType int
LocationType indicates the type of BONEPATH.
const ( // InBinary indicates the BONEPATH in binary. InBinary LocationType = iota // InDirectory indicates the BONEPATH in your directory. InDirectory )
type NotFound ¶
type NotFound struct {
Bonefile string
}
NotFound is indicated not found the bonefile.
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 bone