cast

package
v0.0.0-...-407441d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 2 Imported by: 12

Documentation

Index

Constants

View Source
const (
	ASCIICodeCapA   = int('A') // 65
	ASCIICodeCapZ   = int('Z') // 65
	ASCIICodeLowerA = int('a') // 97
	ASCIICodeLowerZ = int('z') // 97
)

Variables

This section is empty.

Functions

func ASCIIIntToChar

func ASCIIIntToChar(code int) string

ASCIIIntToChar returns a one character string of the given int

func ToASCIICode

func ToASCIICode(arg interface{}) int

ToASCIICode returns the ascii code of a given input

func ToInt

func ToInt(arg interface{}) int

ToInt will case a given arg into an int type. Supported types are:

  • string

func ToString

func ToString(arg interface{}) string

ToString will case a given arg into an int type. Supported types are:

  • int
  • byte
  • rune

Types

This section is empty.

Jump to

Keyboard shortcuts

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