method

View.String

String reads a typed sibling, root or prior value without a type assertion.

Arguments

ArgumentTypeDescription
namestringThe name value.

Returns

The declared result.

(string, bool)

Full signature

func (view View) String(name string) (string, bool)

Source operation/contract.go:195

Related types

  • View

    View is an immutable snapshot of one object's field values. Lookup, Get and String accept direct child names, not dotted paths. Follow nested objects with Get("seo").Get("title"); iterate lists with Get("variants").Elements(). These reads share immutable values without copying maps or slices.