also support timestamp values
Ivan Porto Carrero
1 year, 8 months ago
141 | 141 |
return nil, fmt.Errorf("unable to process scalar node. Got %q. Expecting float content: %w", node.Value, err)
|
142 | 142 |
}
|
143 | 143 |
return f, nil
|
|
144 |
case "yaml.org,2002:timestamp":
|
|
145 |
return node.Value, nil
|
144 | 146 |
case "tag:yaml.org,2002:null":
|
145 | 147 |
return nil, nil
|
146 | 148 |
default:
|