ascii

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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 Ascii2Binary

func Ascii2Binary(s string) string

Ascii2Binary (s string) string

func Ascii2Decimal

func Ascii2Decimal(s string) string

Ascii2Decimal (s string) string

func Ascii2Hexadecimal

func Ascii2Hexadecimal(s string) string

Ascii2Hexadecimal (s string) string

func Ascii2Octal

func Ascii2Octal(s string) string

Ascii2Octal (s string) string

func String

func String(s string) string

String (s string) string

func ValueOf

func ValueOf(s string) int

ValueOf (s string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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