strings

package
v0.0.0-...-dd27f12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2015 License: Zlib Imports: 0 Imported by: 1

Documentation

Overview

Package strings contains Tetra's string manipulation functions that are exposed to lua scripts. These functions are functions that are either inconvenient or unable to be expressed in lua.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func First

func First(str string) string

First returns the first character of a string or an empty string. If the string is blank it will return "".

func Rest

func Rest(str string) string

Rest returns all but the first character of a string. It returns an empty string if the string is blank.

func Shuck

func Shuck(victim string) string

Shuck removes the first and last character of a string, analogous to shucking off the husk of an ear of corn.

Types

This section is empty.

Jump to

Keyboard shortcuts

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