config

package
v2.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string, fallback interface{}) (value interface{}, err error)

Get retrieves a configuration from PHP, and fallback to the second parameter if a config is missing at PHP's end.

func GetBool

func GetBool(key string, fallback bool) (value bool, err error)

GetBool returns a boolean config

func GetFloat

func GetFloat(key string, fallback float64) (value float64, err error)

GetFloat returns a float64 config

func GetInt

func GetInt(key string, fallback int) (value int, err error)

GetInt returns a int config

func GetString

func GetString(key string, fallback string) (value string, err error)

GetString returns a string config

func Has

func Has(key string) (value bool, err error)

Has checks if a configuration exists in PHP

func Set

func Set(key string, val interface{}) (err error)

Set sets a configuration in PHP

Types

This section is empty.

Jump to

Keyboard shortcuts

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