Documentation ¶
Index ¶
- func GetBool(t *rt.Table, key ...string) (b bool, wasSet bool, err error)
- func GetFloat64(t *rt.Table, key ...string) (f float64, wasSet bool, err error)
- func GetInt(t *rt.Table, key ...string) (n int, wasSet bool, err error)
- func GetInt64(t *rt.Table, key ...string) (n int64, wasSet bool, err error)
- func GetString(t *rt.Table, key ...string) (s string, wasSet bool, err error)
- func GetTable(t *rt.Table, key ...string) (tab *rt.Table, wasSet bool, err error)
- func SetBool(t *rt.Table, key string, b bool)
- func SetFloat64(t *rt.Table, key string, f float64)
- func SetInt(t *rt.Table, key string, n int)
- func SetInt64(t *rt.Table, key string, n int64)
- func SetString(t *rt.Table, key string, s string)
- func Subtable(t *rt.Table, name ...string) (*rt.Table, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBool ¶
GetBool returns the value for the given key in the given table as a bool. The boolean wasSet will be true iff the value was non-nil (regardless of type). If the value was non-nil but could not be converted to a bool then err will describe an error.
func GetFloat64 ¶
GetFloat64 returns the value for the given key in the given table as a float64. The boolean wasSet will be true iff the value was non-nil (regardless of type). If the value was non-nil but could not be converted to a float64 then err will describe an error.
func GetInt ¶
GetInt returns the value for the given key in the given table as an int. The boolean wasSet will be true iff the value was non-nil (regardless of type). If the value was non-nil but could not be converted to an int then err will describe an error.
func GetInt64 ¶
GetInt64 returns the value for the given key in the given table as an int64. The boolean wasSet will be true iff the value was non-nil (regardless of type). If the value was non-nil but could not be converted to an int64 then err will describe an error.
func GetString ¶
GetString returns the value for the given key in the given table as a string. The boolean wasSet will be true iff the value was non-nil (regardless of type). If the value was non-nil but could not be converted to a string then err will describe an error.
func GetTable ¶
GetTable returns the value for the given key in the given table as a table. The boolean wasSet will be true iff the value was non-nil (regardless of type). If the value was non-nil but could not be converted to a table then err will describe an error.
func SetFloat64 ¶
SetFloat64 sets the value for the given key in the given table to be f.
Types ¶
This section is empty.