Help us shape the future of Go! Take the 2026 Go Developer Survey

libstring

package
v1.89.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultPackageName = "string"

DefaultPackageName is the package name used by LoadPackage.

Variables

This section is empty.

Functions

func Join added in v1.77.0

func Join(env *lisp.LEnv, parts []string, sep string) *lisp.LVal

Join returns what string:join returns for a list of the strings parts and the separator sep: the same string, or the same error from the same check. It checks the evaluation's context first, as LEnv.CallBuiltin does. Then it makes string:join's allocation check ("join would exceed maximum allocation size (N bytes)") and charges its steps: one per complete KiB of the result. The caller has no element type to check: every part is a string.

func LoadPackage

func LoadPackage(env *lisp.LEnv) *lisp.LVal

LoadPackage adds the string package to env

Types

This section is empty.

Jump to

Keyboard shortcuts

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