Params

Table of contents

Map which represent properties/parameters with their corresponding values. Used to provide or store properties for each view

type Params map[PropertyName]any

Interface description

Get(tag PropertyName) any

Returns a value of the property with name defined by the argument. The type of return value depends on the property. If the property is not set then nil is returned

Set(tag PropertyName, value any) bool

Sets the value (second argument) of the property with name defined by the first argument. Return true if the value has been set, in the opposite case false is returned and a description of an error is written to the log

Remove(tag PropertyName)

Removes the property with name defined by the argument from a map

Clear()

Removes all properties from the map

AllTags() []PropertyName

Returns a sorted slice of all properties