package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Aug 8, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package params reads params from a json file.
GetDecimals gets the number of decimals for a given parameter.
GetMax gets the maximum value of a given param.
GetMin gets the minimum value of a named param.
GetParam gets the min, max and value of a given parameter.
GetValue gets a named param's value.
List lists all parameters.
func LoadParams(filepath string)
LoadParams loads the params from an external json file.
type Param struct {
Min float64 `json:"min"`
Max float64 `json:"max"`
Value float64 `json:"value"`
Decimals int `json:"decimals"`
}
Param represents a single parameter.
Params is a list of Params.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.