state

package
v0.0.0-...-7dcde51 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext() *Context

func (*Context) Transform

func (p *Context) Transform(input []rune)

type State

type State interface {
	// contains filtered or unexported methods
}
Example
context := NewContext()

input := []rune("HELLO, world")
context.Transform(input)

fmt.Println(string(input))
Output:

HElLo, WoRlD
var (
	BeginState   State
	EndState     State
	ToUpperState State
	ToLowerState State
)

Jump to

Keyboard shortcuts

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