mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
22 lines
303 B
Go
22 lines
303 B
Go
package low
|
|
|
|
import "gopkg.in/yaml.v3"
|
|
|
|
type HasNode interface {
|
|
GetNode() *yaml.Node
|
|
}
|
|
|
|
type Buildable interface {
|
|
Build(node *yaml.Node)
|
|
}
|
|
|
|
type NodeReference[T comparable] struct {
|
|
Value T
|
|
Node *yaml.Node
|
|
}
|
|
|
|
type ObjectReference struct {
|
|
Value interface{}
|
|
Node *yaml.Node
|
|
}
|