MCPcopy
hub / github.com/six2dez/OneListForAll / LoadTaxonomy

Function LoadTaxonomy

internal/config/taxonomy.go:22–28  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

20}
21
22func LoadTaxonomy(path string) (*Taxonomy, error) {
23 buf, err := os.ReadFile(path)
24 if err != nil {
25 return nil, fmt.Errorf("read taxonomy: %w", err)
26 }
27 return LoadTaxonomyFromBytes(buf)
28}
29
30// LoadTaxonomyFromBytes parses taxonomy JSON from raw bytes.
31func LoadTaxonomyFromBytes(buf []byte) (*Taxonomy, error) {

Callers 3

RunFunction · 0.92
runListFunction · 0.92
runValidateCategoriesFunction · 0.92

Calls 1

LoadTaxonomyFromBytesFunction · 0.85

Tested by

no test coverage detected