converter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsPointer

func AsPointer[T bool | int32 | int64 | float32 | float64 | string](scalar T) *T

func AsScalar

func AsScalar[T ~bool | ~int32 | ~int64 | ~float32 | ~float64 | ~string](pointer *T) T

func Cast

func Cast(from, to interface{}) error

func StringToBool

func StringToBool(s string, defaultValue bool) bool

func StringToCommonSeparatedList

func StringToCommonSeparatedList(s string) []string

func StringToDouble

func StringToDouble(s string, defaultValue float64) float64

func StringToInt32

func StringToInt32(s string, defaultValue int32) int32

func StringToInt64

func StringToInt64(s string, defaultValue int64) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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