typenames

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package typenames generates human-friendly names for go objects using reflection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBigFloatType

func IsBigFloatType(typ reflect.Type) bool

func IsBigIntType

func IsBigIntType(typ reflect.Type) bool

func IsJSONNumberType

func IsJSONNumberType(typ reflect.Type) bool

func LongName

func LongName(valueOrTypeOrObj interface{}) string

LongName is like "map of string to object". Accepts reflect.Value, reflect.Type, or interface{}. You should pass whichever one is available. This is to avoid accidental panics from code that naively calls value.Type() or reflect.ValueOf(obj).Type().

func ShortName

func ShortName(valueOrTypeOrObj interface{}) string

ShortName is like "map". Like LongName, accepts reflect.Value, reflect.Type, or interface{}.

Types

This section is empty.

Jump to

Keyboard shortcuts

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