IsTimestamp returns true if the YAML node is a timestamp.
(node *yaml.Node)
| 90 | |
| 91 | // IsTimestamp returns true if the YAML node is a timestamp. |
| 92 | func (YAMLHelper) IsTimestamp(node *yaml.Node) bool { |
| 93 | return isTypeTag(node, yamlTimestamp) |
| 94 | } |
| 95 | |
| 96 | func isTypeTag(node *yaml.Node, wantTag yamlNodeType) bool { |
| 97 | if yt, found := yamlTypes[node.LongTag()]; found { |