Documentation
¶
Overview ¶
Package params gives templates the parameters of a mock server, as text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct {
// contains filtered or unexported fields
}
Parameters gives templates the app parameters as text: {{ .Parameters.Get "key" }}. A parameter that may be missing reads with Has first: {{ if .Parameters.Has "key" }}.
func New ¶
func New(ctx context.Context, kv vlatte.KV) *Parameters
New returns the Parameters of kv, read with ctx.
Click to show internal directories.
Click to hide internal directories.