Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + const Color_000000 + const Color_04502e + const Color_076239 + const Color_094228 + const Color_0b4f30 + const Color_0b804b + const Color_0d3472 + const Color_0d3b44 + const Color_149e60 + const Color_16a765 + const Color_16a766 + const Color_1a764d + const Color_1c4587 + const Color_285bac + const Color_2a9c68 + const Color_2da2bb + const Color_3c78d8 + const Color_3d188e + const Color_3dc789 + const Color_41236d + const Color_42d692 + const Color_434343 + const Color_43d692 + const Color_44b984 + const Color_464646 + const Color_4986e7 + const Color_4a86e8 + const Color_594c05 + const Color_653e9b + const Color_662e37 + const Color_666666 + const Color_684e07 + const Color_68dfa9 + const Color_6d9eeb + const Color_711a36 + const Color_7a2e0b + const Color_7a4706 + const Color_822111 + const Color_83334c + const Color_89d3b2 + const Color_8a1c0a + const Color_8e63ce + const Color_98d7e4 + const Color_994a64 + const Color_999999 + const Color_a0eac9 + const Color_a2dcc1 + const Color_a46a21 + const Color_a479e2 + const Color_a4c2f4 + const Color_aa8831 + const Color_ac2b16 + const Color_b3efd3 + const Color_b65775 + const Color_b694e8 + const Color_b6cff5 + const Color_b99aff + const Color_b9e4d0 + const Color_c2c2c2 + const Color_c6f3de + const Color_c9daf8 + const Color_cc3a21 + const Color_cca6ac + const Color_cccccc + const Color_cf8933 + const Color_d0bcf1 + const Color_d5ae49 + const Color_e07798 + const Color_e3d7ff + const Color_e4d7f5 + const Color_e66550 + const Color_e7e7e7 + const Color_eaa041 + const Color_ebdbde + const Color_efa093 + const Color_efefef + const Color_f2b2a8 + const Color_f2c960 + const Color_f3f3f3 + const Color_f691b2 + const Color_f691b3 + const Color_f6c5be + const Color_f7a7c0 + const Color_fad165 + const Color_fb4c2f + const Color_fbc8d9 + const Color_fbd3e0 + const Color_fbe983 + const Color_fcda83 + const Color_fcdee8 + const Color_fce8b3 + const Color_fdedc1 + const Color_fef1d1 + const Color_ff7537 + const Color_ffad46 + const Color_ffad47 + const Color_ffbc6b + const Color_ffc8af + const Color_ffd6a2 + const Color_ffdeb5 + const Color_ffe6c7 + const Color_ffffff + const VisibilityLabelListHide + const VisibilityLabelListShow + const VisibilityLabelListShowIfUnread + const VisibilityMessageListHide + const VisibilityMessageListShow + var ErrorLabelNotFound = errors.New("label not found") + var MFindLabel = app_msg.Apply(&MsgFindLabel{}).(*MsgFindLabel) + var ValidColors = []string + var VisibilityLabelList = []string + var VisibilityMessageList = []string + func FindLabelIdsByNames(ctx goog_context.Context, ui app_ui.UI, userId string, names []string) (labelIds []string, err error) + func FindOrAddLabelIdsByNames(ctx goog_context.Context, ui app_ui.UI, userId string, names []string) (labelIds []string, err error) + type Label interface + Add func(name string, opts ...Opt) (label *mo_label.Label, err error) + List func() (labels []*mo_label.Label, err error) + Remove func(id string) error + Resolve func(id string) (label *mo_label.Label, err error) + ResolveByName func(name string) (label *mo_label.Label, err error) + ResolveByNames func(names []string) (labels []*mo_label.Label, missing []string, err error) + Update func(id string, opts ...Opt) (label *mo_label.Label, err error) + func New(ctx goog_context.Context, userId string) Label + func NewCached(ctx goog_context.Context, userId string) Label + type LabelColorParam struct + BackgroundColor string + TextColor string + type LabelParam struct + Color *LabelColorParam + LabelListVisibility string + MessageListVisibility string + Name string + type MsgFindLabel struct + ErrorFailedAddLabel app_msg.Message + ErrorLabelNotFound app_msg.Message + type Opt func(o Opts) Opts + func ColorBackground(c string) Opt + func ColorText(c string) Opt + func LabelListVisibility(v string) Opt + func MessageListVisibility(v string) Opt + func Name(v string) Opt + type Opts struct + ColorBackground string + ColorText string + LabelListVisibility string + MessageListVisibility string + Name string + func (z Opts) Apply(opts ...Opt) Opts + func (z Opts) Param() LabelParam