MCPcopy Create free account
hub / github.com/VirusTotal/vt-cli / EncoderDateKeys

Function EncoderDateKeys

yaml/yaml.go:66–68  ·  view source on GitHub ↗

EncoderDateKeys sets a list of globs that define the keys whose values should be encoded as a date. Every key that matches any of the globs and have a numeric value are encoded as a date, which means that a comment is added with the human-friendly date.

(g []glob.Glob)

Source from the content-addressed store, hash-verified

64// have a numeric value are encoded as a date, which means that a comment is
65// added with the human-friendly date.
66func EncoderDateKeys(g []glob.Glob) EncoderOption {
67 return func(e *Encoder) { e.dateKeys = g }
68}
69
70// EncoderIndent sets the indentation size used while encoding the YAML.
71func EncoderIndent(i int) EncoderOption {

Callers 3

PrintMethod · 0.92
NewMetaCmdFunction · 0.92
TestYAMLFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestYAMLFunction · 0.68