Documentation ¶
Overview ¶
Example ¶
package main import ( "fmt" "github.com/clarketm/ncalc/ascii" ) func main() { // ASCII a := "d" fmt.Println(ascii.Ascii2Binary(a)) fmt.Println(ascii.Ascii2Octal(a)) fmt.Println(ascii.Ascii2Decimal(a)) fmt.Println(ascii.Ascii2Hexadecimal(a)) fmt.Printf("%v:%T", ascii.String(a), ascii.String(a)) }
Output: 1100100 144 100 64 'd':string
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ascii2Hexadecimal ¶
Ascii2Hexadecimal (s string) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.