bytes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidUserTypeNameByte

func IsValidUserTypeNameByte(c byte) bool

IsValidUserTypeNameByte returns true if specified rune can be a part of user type name. Important: `@` isn't valid here 'cause schema name should start with `@` but it didn't allow to use that symbol in the name.

Types

type Bytes

type Bytes []byte

func (Bytes) CountSpacesFromLeft

func (b Bytes) CountSpacesFromLeft() int

func (Bytes) Equals

func (b Bytes) Equals(bb Bytes) bool

func (Bytes) IsUserTypeName

func (b Bytes) IsUserTypeName() bool

func (Bytes) Len

func (b Bytes) Len() int

func (Bytes) LineFrom

func (b Bytes) LineFrom(start Index) (Bytes, error)

func (Bytes) OneOf

func (b Bytes) OneOf(ss ...string) bool

OneOf checks current bytes sequence equal to at least one of specified strings.

func (Bytes) ParseBool

func (b Bytes) ParseBool() (bool, error)

func (Bytes) ParseInt

func (b Bytes) ParseInt() (int, error)

func (Bytes) ParseUint

func (b Bytes) ParseUint() (uint, error)

func (Bytes) Slice

func (b Bytes) Slice(begin, end Index) Bytes

func (Bytes) String

func (b Bytes) String() string

func (Bytes) TrimSpaces

func (b Bytes) TrimSpaces() Bytes

func (Bytes) TrimSpacesFromLeft

func (b Bytes) TrimSpacesFromLeft() Bytes

func (Bytes) TrimSquareBrackets

func (b Bytes) TrimSquareBrackets() Bytes

func (Bytes) Unquote

func (b Bytes) Unquote() Bytes

type Index

type Index uint

Jump to

Keyboard shortcuts

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