Thanks to visit codestin.com
Credit goes to github.com

Skip to content

reiver/go-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ascii

Package ascii provides tools for working with ASCII characters, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/codeberg.org/reiver/go-ascii

GoDoc

Example

Here is an example of using the longer versions of the ASCII constants:

import (
	"codeberg.org/reiver/go-ascii"
)

// ...

var byte b

// ...

switch b {
case ascii.BackSpace:
	// ...
case ascii.HorizontalTab:
	// ...
case ascii.LineFeed:
	// ...
case ascii.Delete:
	// ...
default:
	// ...
}

Here is an example of using the longer versions of the ASCII constants:

import (
	"codeberg.org/reiver/go-ascii"
)

// ...

var byte b

// ...

switch b {
case ascii.BS
	// ...
case ascii.HT:
	// ...
case ascii.LF:
	// ...
case ascii.DEL:
	// ...
default:
	// ...
}

Import

To import package ascii use import code like the following:

import "codeberg.org/reiver/go-ascii"

Installation

To install package ascii do the following:

GOPROXY=direct go get codeberg.org/reiver/go-ascii

Author

Package ascii was written by Charles Iliya Krempeaux

About

A library that provides tools for working with ASCII characters, for the Go programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages