Documentation ¶
Overview ¶
Example ¶
package main import ( dot "github.com/GoLangsam/container/ccsafe/tagmap" ) func main() { var sms *dot.Dot = dot.New("<root>") // sms.PrintTree("1 >>") sms.Assignss("foo", "bar") // sms.PrintTree("1 >>") }
Output:
Index ¶
- type AssignFriendly
- type ChildFriendly
- type DeleteFriendly
- type Dot
- func (d *Dot) A(vals ...string) string
- func (d *Dot) AddMap(key string, val ...map[string]string) *Dot
- func (d *Dot) AddStringS(key string, val ...[]string) *Dot
- func (d *Dot) AddStrings(key string, val ...string) *Dot
- func (d *Dot) AssignMs(val ...map[string]string) *Dot
- func (d *Dot) AssignSs(val ...[]string) *Dot
- func (d *Dot) Assignss(vals ...string) *Dot
- func (d *Dot) DeleteMs(vals ...map[string]string) *Dot
- func (d *Dot) DeleteSs(vals ...[]string) *Dot
- func (d *Dot) Deletess(vals ...string) *Dot
- func (d *Dot) G(keys ...string) *Dot
- func (d *Dot) KV(key, val string) *Dot
- func (d *Dot) Set(vals ...string) *Dot
- func (d *Dot) SetM(val ...map[string]string) *Dot
- func (d *Dot) SetS(val ...[]string) *Dot
- func (d *Dot) UnlockedAdd(key string, val ...string) (interface{}, bool)
- func (d *Dot) UnlockedGet(key string) (interface{}, bool)
- type DotS
- type Friendly
- type GoFriendly
- type PrivacyFriendly
- type SetableFriendly
- type StringFriendly
- type UserFriendly
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignFriendly ¶
type AssignFriendly interface { Assignss(vals ...string) *Dot // Assign/overwrite Content with val - given as strings AssignSs(val ...[]string) *Dot // Assign/overwrite Content with val - given as slices of strings AssignMs(val ...map[string]string) *Dot // Assign/overwrite Content with val - given as maps of strings }
AssignFriendly - interface exposed for go doc only
type ChildFriendly ¶
type ChildFriendly interface {
// contains filtered or unexported methods
}
ChildFriendly - interface exposed for go doc only
type DeleteFriendly ¶
type DeleteFriendly interface { Deletess(vals ...string) *Dot // Delete/remove vals from Content - given as strings DeleteSs(vals ...[]string) *Dot // Delete/remove val from Content - given as slices of strings DeleteMs(vals ...map[string]string) *Dot // Delete/remove val from Content - given as maps of strings }
DeleteFriendly - interface exposed for go doc only
type Dot ¶
type Dot struct { *tag.TagAny // key - a Key Value Pair *lsm.LazyStringerMap // value(s) - an 'Anything' StringMap // contains filtered or unexported fields }
Dot is the type provided by package dot
func (*Dot) AddMap ¶
AddMap adds key to current dot d and adds content below this key using given variadic string-maps
func (*Dot) AddStringS ¶
AddStringS adds key to current dot d and adds content below this key using given variadic string-slices
func (*Dot) AddStrings ¶
AddStrings adds key to current dot d and adds content below this key using given variadic strings
func (*Dot) AssignMs ¶
AssignMs adds to (or replaces with) content below current dot d using given variadic string-maps
func (*Dot) AssignSs ¶
AssignSs adds to (or replaces with) content below current dot d using given variadic string-slices
func (*Dot) Assignss ¶
Assignss adds to (or replaces with) content below current dot d using given variadic strings
func (*Dot) DeleteMs ¶
DeleteMs deletes / removes content below current dot d using given variadic string-maps
func (*Dot) DeleteSs ¶
DeleteSs deletes / removes content below current dot d using given variadic string-slices
func (*Dot) Deletess ¶
Deletess deletes / removes content below current dot d using given variadic strings
func (*Dot) G ¶
G is a helper method for templates: Go down into (eventually new!) key(s) and return the final child dot (key).
func (*Dot) SetM ¶
SetM adds (or replaces) content below current dot d using given variadic string-maps
func (*Dot) SetS ¶
SetS adds (or replaces) content below current dot d using given variadic string-slices
func (*Dot) UnlockedAdd ¶
UnlockedAdd is a helper method and is exported only for use by the function library "do/dot". It adds key to d, and adds variadic strings below key, and returns child "key"
Note: It's 2nd arg (bool) intentionally avoids usage from templates!
Other clients must behave as if this method is not exported!
func (*Dot) UnlockedGet ¶
UnlockedGet is a helper method and is exported only for use by the function library "do/dot". It returns the (eventually new!) child (key)
Note: It's 2nd arg (bool) intentionally avoids usage from templates!
Other clients must behave as if this method is not exported!
type Friendly ¶
type Friendly interface { tag.Friendly // via "container/.../tag/..." lsm.Friendly // via "container/.../lsm" StringFriendly // dot.go: Set..., Assign..., Delete... ChildFriendly // children.go: lookupDot getChild /* NavigatorFriendly // navigate.go: Up Root Path DownS PrinterFriendly // print.go: PrintTree ErrorFriendly // => dot! error.go OutputFriendly // output.go */ GoFriendly // dot.go }
Friendly - interface exposed for go doc only shows the composition as interface
type GoFriendly ¶
type GoFriendly interface { // helper for templates: A(vals ...string) string // Add values, and return an empty string G(keys ...string) *Dot // Go into key(s) KV(key, val string) *Dot // Assign a Key Value Pair // helper for "do/dot" UnlockedGet(key string) (interface{}, bool) UnlockedAdd(key string, val ...string) (interface{}, bool) }
GoFriendly - interface exposed for go doc only
type PrivacyFriendly ¶
type PrivacyFriendly interface {
// contains filtered or unexported methods
}
PrivacyFriendly - interface exposed for go doc only
type SetableFriendly ¶
type SetableFriendly interface { Set(vals ...string) *Dot // Set/replace Content with val - given as strings SetS(val ...[]string) *Dot // Set/replace Content with val - given as slices of strings SetM(val ...map[string]string) *Dot // Set/replace Content with val - given as maps of strings }
SetableFriendly - interface exposed for go doc only
type StringFriendly ¶
type StringFriendly interface { SetableFriendly // set.go: Set/replace Content: Set SetS SetM AssignFriendly // assign.go: Add/overwrite Content: Assignss AssignSs AssignMs UserFriendly // add.go: AddMap AddStrings AddStringS DeleteFriendly // delete.go: Delete/remove vals from Content: Deletes, DeleteS, DeleteM PrivacyFriendly // content.go: add addM }
StringFriendly - interface exposed for go doc only
type UserFriendly ¶
type UserFriendly interface { AddStrings(key string, val ...string) *Dot // adds key to d, and adds variadic strings below key AddStringS(key string, val ...[]string) *Dot // adds key to d, and adds slices below key AddMap(key string, vals ...map[string]string) *Dot // adds key to d, and adds map(s) below key }
UserFriendly - interface exposed for go doc only