Versions in this module Expand all Collapse all v1 v1.0.3 Nov 20, 2023 Changes in this version + func CodeVerify(codeStr string) *errors.Error + func CtxToData(c Ctx) ([]byte, *errors.Error) + type Code string + const NilCode + func CodeOf(codeStr string) (Code, *errors.Error) + func (a Code) S() string type Expense + func (exp *Expense) S() string type Ref + func (ref *Ref) S() string type Title + func (t Title) S() string type What + func (what *What) S() string type When + func (w When) S() string type Who + func (who *Who) S() string type Yin + Yin Code + func (y *Yin) Summary() string v1.0.2 Oct 25, 2023 v1.0.1 Oct 25, 2023 v1.0.0 Oct 25, 2023 Changes in this version + func ActVerify(actStr string) *errors.Error + func CurrencyVerify(str string) *errors.Error + func TitleVerify(tilStr string) *errors.Error + type Act string + const NilAct + func ActOf(actStr string) (Act, *errors.Error) + func (a Act) S() string + type Ctx map[string]string + func NewCtx() Ctx + func (c Ctx) Put(code string, val string) *errors.Error + type Currency string + const NilCurrency + func CurrencyOf(str string) (Currency, *errors.Error) + type Expense struct + Amount int64 + Currency Currency + Ex map[string]*ExpenseItem + func NewExpense(currencyStr string, amount int64) (*Expense, *errors.Error) + func (exp *Expense) PutEx(code string, exExp *ExpenseItem) + type ExpenseItem struct + Amount int64 + Currency Currency + type Ref struct + Code string + Ref string + func RefOf(codeStr string, refStr string) (*Ref, *errors.Error) + type Tag string + const NilTag + func TagAppend(tags []Tag, tag Tag) []Tag + func TagOf(tagStr string) (Tag, *errors.Error) + func (t Tag) S() string + type Title string + const NilTitle + func TitleOf(tilStr string) (Title, *errors.Error) + type What Ref + func NewWhat(codeStr string, refStr string) (*What, *errors.Error) + type When int64 + func NewWhen() When + func (w When) Time() time.Time + type Who struct + Ref *Ref + Who ki.ADR + func NewWho(whoStr string, refCode string, refRef string) (*Who, *errors.Error) + type YID = bk.BID + type Yin struct + Act Act + Ctx Ctx + Exp *Expense + Sp sp.ID + Tag []Tag + Title Title + Vn vn.ID + What *What + When When + Who *Who + func NewYin(vnIDStr string, spIDStr string) (*Yin, *errors.Error) + func (y *Yin) Digest() string + func (y *Yin) GetSP() sp.ID + func (y *Yin) GetType() bk.Type + func (y *Yin) GetVN() vn.ID + func (y *Yin) Verify() *errors.Error + func (y *Yin) WithAct(actStr string) *errors.Error + func (y *Yin) WithCtx(codeStr string, valStr string) *errors.Error + func (y *Yin) WithExpense(currencyStr string, amount int64) *errors.Error + func (y *Yin) WithTag(tagStrArr ...string) *errors.Error + func (y *Yin) WithTitle(tilStr string) *errors.Error + func (y *Yin) WithWhat(codeStr string, refStr string) *errors.Error + func (y *Yin) WithWho(whoStr string, refCode string, refRef string) *errors.Error