Documentation ¶
Overview ¶
Package util handles metadata for documentation generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFunction ¶
RegisterFunction records the metadata for a function of this name.
func RegisterResource ¶
RegisterResource records the metadata for a resource of this kind.
Types ¶
type Metadata ¶
type Metadata struct { // Filename is the filename (without any base dir path) that this is in. Filename string // Typename is the string name of the main resource struct or function. Typename string }
Metadata stores some additional information about the function or resource. This is used to automatically generate documentation.
func LookupFunction ¶
LookupFunction looks up the metadata for a function of this name.
func LookupResource ¶
LookupResource looks up the metadata for a resource of this kind.
func (*Metadata) GetMetadata ¶
GetMetadata returns some metadata about the func. It can be called at any time. This must not be named the same as the struct it's on or using it as an anonymous embedded struct will stop us from being able to call this method.