Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit 245974a

Browse files
author
Kris Hicks
committed
Add godoc to Node.Empty()
1 parent 82ea669 commit 245974a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

node.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func (n *Node) UnmarshalYAML(unmarshal func(interface{}) error) error {
3737
return nil
3838
}
3939

40+
// Empty returns whether the raw value is nil
4041
func (n *Node) Empty() bool {
4142
return *n.raw == nil
4243
}

0 commit comments

Comments
 (0)