module

Noir::GoStructFields

Go struct field tables, for the request-binding readers: the fields a c.Bind(&req) fills are the tagged fields of req's struct type, embedded structs included.

Class methods

collect(source : String) : Hash(String, Array(Field))

type X struct {...} declarations in source: name -> fields.

Source
literal(text : String) : Array(Field)

The fields of the struct { ... } type literal text.

Source
tag_value(tag : String, key : String) : String | Nil

key's name in a field tag (json:"name,omitempty" -> "name"); nil when the tag has no such key or names - (never bound).

Source

Nested types