convert

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64ToRoman

func Int64ToRoman(num int64) string

func IntToChar

func IntToChar(i int) string

Convert integer to its character representation (eg. 1=A 3=C). Support multiple character for number greater than 26 (eg. 27=AA 703=AAA)

func PascalCaseToCamelCase

func PascalCaseToCamelCase(s string) string

Convert Pascal Case string (PascalCase) to Camel Case string (camelCase)

func RomanToInt64

func RomanToInt64(roman string) int64

func ToArrInt64

func ToArrInt64(i interface{}) ([]int64, error)

func ToCamelCase

func ToCamelCase(input string) string

Convert Text to camel case string with lower case in beginning ex: "Additional Item" --> "additionalItem"

func ToFloat64

func ToFloat64(i interface{}) (float64, error)

func ToInt64

func ToInt64(i interface{}) (int64, error)

func ToPascalCase

func ToPascalCase(input string) string

Convert text to camle case string with upper case in beginning ex: "additional item" --> "AdditionalItem"

func ToString

func ToString(i interface{}) (string, error)

Convert any data to string. This function will always return nil error

Types

This section is empty.

Jump to

Keyboard shortcuts

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