fork/gdu
git clone https://git.julia.blue/fork/gdu
d062e88
ignore
1package fs 2 3// JSONAttributes selects optional attributes written to an analysis export. 4// A nil set preserves the complete legacy export. 5type JSONAttributes map [string ]struct {} 6 7// Includes reports whether an optional JSON attribute should be written. 8func (attributes JSONAttributes )Includes (attribute string )bool { 9if attributes == nil { 10return true 11 } 12_ ,ok := attributes [attribute ] 13return ok 14}