doc: finished structure, supports title

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-06-02 18:20:49 +02:00
parent 7b4421b9a0
commit 8c3c934f3c
2 changed files with 65 additions and 17 deletions

View File

@@ -76,8 +76,8 @@ func (f Field) Label() string {
// Proxy function to the underlying cue.Value
// Field ordering is guaranteed to be stable.
func (v *Value) Fields() ([]Field, error) {
it, err := v.val.Fields()
func (v *Value) Fields(opts ...cue.Option) ([]Field, error) {
it, err := v.val.Fields(opts...)
if err != nil {
return nil, err
}