helper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToken

func ByteToken(val byte) dialect.Token

ByteToken creates a byte.

func ProcessTokens

func ProcessTokens(w dialect.StringByteWriter, tokens []dialect.Token) (int, error)

ProcessTokens goes thought all tokens and call WriteTo method.

func StringToken

func StringToken(f string, args ...interface{}) dialect.Token

StringToken creates a string token with formatting.

Types

type TokenFunc

type TokenFunc func(w dialect.StringByteWriter) (int, error)

TokenFunc implements Token.

func (TokenFunc) WriteTo

func (tf TokenFunc) WriteTo(w dialect.StringByteWriter) (int, error)

WriteTo implements dialect.Token interface.

Jump to

Keyboard shortcuts

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