Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandomScalarValue ¶
GenRandomScalarValue generates random scalar value depending on its representation type
func GenRandomString ¶
GenRandomString generate random string with fixed length
func WritePrettyFileJSON ¶
func WritePrettyFileJSON(fileName string, data any, strategy WriteFileStrategy) error
WritePrettyFileJSON writes JSON data with indent
Types ¶
type WriteFileStrategy ¶
type WriteFileStrategy string
Decide the strategy to do when the written file exists
const ( WriteFileStrategyNone WriteFileStrategy = "none" WriteFileStrategyOverride WriteFileStrategy = "override" )
func ParseWriteFileStrategy ¶
func ParseWriteFileStrategy(input string) (WriteFileStrategy, error)
ParseWriteFileStrategy parses a WriteFileStrategy enum from string
Click to show internal directories.
Click to hide internal directories.