typutil

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 7 Imported by: 13

README

GoDoc

type conversion utils

This is useful when dealing with json parsed types for example.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsBool

func AsBool(v any) bool

some helper functions related to numbers

func AsFloat

func AsFloat(v any) (float64, bool)

func AsInt

func AsInt(v any) (int64, bool)

func AsNumber

func AsNumber(v any) (any, bool)

func AsString added in v0.1.2

func AsString(v any) (string, bool)

func AsUint

func AsUint(v any) (uint64, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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