settings

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 0 Imported by: 7 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package settings provides a way to store and retrieve settings for resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting map[string]interface{}

func (*Setting) Get

func (s *Setting) Get(key string) interface{}

Get returns the value of a key in the Setting Deprecated: use GetBool, GetString, or GetInt instead

func (*Setting) GetBool added in v0.17.0

func (s *Setting) GetBool(key string) bool

GetBool returns the boolean value of a key in the Setting

func (*Setting) GetInt added in v0.17.0

func (s *Setting) GetInt(key string) int

GetInt returns the integer value of a key in the Setting

func (*Setting) GetString added in v0.17.0

func (s *Setting) GetString(key string) string

GetString returns the string value of a key in the Setting

func (*Setting) Set

func (s *Setting) Set(key string, value interface{})

Set sets a key value pair in the Setting

type Settings

type Settings map[string]*Setting

func (*Settings) Get

func (s *Settings) Get(key string) *Setting

func (*Settings) Set

func (s *Settings) Set(key string, value *Setting)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL