Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Id ¶
type Id string
Id uniquely identifies some resource. NOTE: go is not capable of comparing slices(!?), and there is no interface for making a type hashable(!?) ALSO: the default json encoding --- even when the marshal is implemented!? -- doesnt seem to support a struct as a map key. Therefore, Id cannot store its parts as an []string. they must be joined first.
func MakeId ¶
MakeId creates a new string id from the passed raw string. Dashes and spaces are treated as word separators; sequences of numbers and sequences of letters are treated as separate words. NOTE: Articles ( the, etc. ) are stripped for easier matching at the script/table/level.
func (Id) Reserved ¶
Reserved using an indicator to tag unique strings ids. FIX: i think with a judicious use of name vs. id -- this could be removed. ie. allow ids to be non-dashed, raw text. the dashing was in part to normalize multiple spaces and capitializations.