type

Reference

Reference is an immutable field selector. Its dot-separated path names stored fields through non-repeated groups or named tabs, excluding presentation wrappers and repeated row selectors. Each use resolves in its own field scope.

Full signature

type Reference struct { scope ReferenceScope path string }

Source field/reference.go:22

Methods

  • Reference.Err()

    Err checks path structure. Configuration resolution checks target existence and rejects paths that cross repeated fields or end at incompatible values.

  • Reference.IsZero()

    IsZero reports an unspecified reference.

  • Reference.MarshalJSON()

    MarshalJSON retains the authored scope and path.

  • Reference.Path()

    Path returns the authored dot-separated path relative to the starting scope.

  • Reference.Scope()

    Scope returns the reference's starting object scope.