package classmap // Kind mirrors the old XML node names: class, method, prop. type Kind string const ( KindClass Kind = "class" KindMethod Kind = "method" KindProp Kind = "prop" ) // Resource points to the physical JS/CSS pair for a symbol. // JS and CSS are content hashes. CSSHash == "1" means no CSS file, matching the old Python behavior. type Resource struct { Src string JSHash string CSSHash string } // Symbol is the flattened replacement for the old XML tree. // Parent imports for exported props/methods are resolved by Parent. type Symbol struct { Name string Kind Kind Parent string Imports []string Resource Resource } // Map is generated by cmd/botan-gen. type Map struct { Symbols map[string]Symbol Files map[string]Resource }