Skip to content

Validation fails to build instance #77

@shortwavedave

Description

@shortwavedave

In the example here:
https://cuetorials.com/go-api/loading/#loading-and-printing-cue-code

it says:

// to cause a load error, remove the '&'
// to cause a build error, change '#A' to '#B'
// to cause a validation error, change foo to '1'

However, the third case actually produces a build error. I'm not sure it's possible to reach this line

fmt.Println("Error during validation:", err)

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions