cubecode

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT, BSD-2-Clause Imports: 3 Imported by: 0

README

CubeCode

A basic Go package to parse Cube 2: Sauerbraten network messages.

This package offers easy methods to read Sauerbraten network messages with Go and does integer decompression and character translation to Unicode for you.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blue

func Blue(s string) string

func Error

func Error(s string) string

func Fail

func Fail(s string) string

func Filter

func Filter(s string, whitespaceAllowed bool) (filtered string)

func FromUnicode

func FromUnicode(r rune) int32

func Gray

func Gray(s string) string

func Green

func Green(s string) string

func Magenta

func Magenta(s string) string

func Orange

func Orange(s string) string

func Red

func Red(s string) string

func SanitizeString

func SanitizeString(s string) string

SanitizeString returns the string, cleared of sauer color codes like \f3 for red.

func Success

func Success(s string) string

func ToUnicode

func ToUnicode(cpoint int32) rune

func White

func White(s string) string

func Yellow

func Yellow(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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