Documentation ¶
Index ¶
- Variables
- func CharAt(index int) string
- func IndexOf(char rune) int
- type Readable
- func (b256 Readable) Bytes() []byte
- func (b256 Readable) IsEmpty() bool
- func (b256 Readable) Len() int
- func (b256 Readable) NonEmpty() bool
- func (b256 Readable) String(useAscii ...bool) string
- func (b256 Readable) ToHex() string
- func (b256 Readable) ToNumber(nbZeroPad ...int) string
- func (b256 Readable) Uint64() uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var CHARSET = []rune("!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^`abcdefghijklmnopqrstuvwxyz{|}€¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷ùúûüýÿăąĊčđĕĘğħĩĭıĵķĿŀŁłňŋŏœŖřŝşŦŧũūůŲŵſƀƁƂƄƆƇƔƕƗƙƛƜƟƢƥƦƧƩƪƭƮưƱƲƵƸƺƾǀǁǂƿǬǮǵǶǹǻǿ")
Based on the 512-characters UTF-8 table - @see https://www.utf8-chartable.de/unicode-utf8-table.pl?number=512
Functions ¶
Types ¶
type Readable ¶
type Readable string
Readable represents a character in a readable base-256 charset
func NumberToReadable ¶ added in v1.4.1
NumberToReadable ...
func (Readable) String ¶
String ...
NB: By passing `true` as argument, you signify you don't want to use the readable charset but force the ASCII rendering, implying that you'd probably get unreadable characters if the underlying byte array uses byte that ranges over 127 but that you'd get the correct length when using the len() function on the resulting string
Click to show internal directories.
Click to hide internal directories.