strings

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(ctx context.Context, args ...object.Object) object.Object

Compare is a wrapper function around [compare] that implements object.BuiltinFunction.

func Contains

func Contains(ctx context.Context, args ...object.Object) object.Object

Contains is a wrapper function around [contains] that implements object.BuiltinFunction.

func Count

func Count(ctx context.Context, args ...object.Object) object.Object

Count is a wrapper function around [count] that implements object.BuiltinFunction.

func Fields

func Fields(ctx context.Context, args ...object.Object) object.Object

Fields is a wrapper function around [fields] that implements object.BuiltinFunction.

func HasPrefix

func HasPrefix(ctx context.Context, args ...object.Object) object.Object

HasPrefix is a wrapper function around [hasPrefix] that implements object.BuiltinFunction.

func HasSuffix

func HasSuffix(ctx context.Context, args ...object.Object) object.Object

HasSuffix is a wrapper function around [hasSuffix] that implements object.BuiltinFunction.

func Index

func Index(ctx context.Context, args ...object.Object) object.Object

Index is a wrapper function around [index] that implements object.BuiltinFunction.

func Join

func Join(ctx context.Context, args ...object.Object) object.Object

Join is a wrapper function around [join] that implements object.BuiltinFunction.

func LastIndex

func LastIndex(ctx context.Context, args ...object.Object) object.Object

LastIndex is a wrapper function around [lastIndex] that implements object.BuiltinFunction.

func Module

func Module() *object.Module

Module returns the Risor module object with all the associated builtin functions.

func Repeat added in v1.3.0

func Repeat(ctx context.Context, args ...object.Object) object.Object

Repeat is a wrapper function around [repeat] that implements object.BuiltinFunction.

func ReplaceAll

func ReplaceAll(ctx context.Context, args ...object.Object) object.Object

ReplaceAll is a wrapper function around [replaceAll] that implements object.BuiltinFunction.

func Split

func Split(ctx context.Context, args ...object.Object) object.Object

Split is a wrapper function around [split] that implements object.BuiltinFunction.

func ToLower

func ToLower(ctx context.Context, args ...object.Object) object.Object

ToLower is a wrapper function around [toLower] that implements object.BuiltinFunction.

func ToUpper

func ToUpper(ctx context.Context, args ...object.Object) object.Object

ToUpper is a wrapper function around [toUpper] that implements object.BuiltinFunction.

func Trim

func Trim(ctx context.Context, args ...object.Object) object.Object

Trim is a wrapper function around [trim] that implements object.BuiltinFunction.

func TrimPrefix

func TrimPrefix(ctx context.Context, args ...object.Object) object.Object

TrimPrefix is a wrapper function around [trimPrefix] that implements object.BuiltinFunction.

func TrimSpace

func TrimSpace(ctx context.Context, args ...object.Object) object.Object

TrimSpace is a wrapper function around [trimSpace] that implements object.BuiltinFunction.

func TrimSuffix

func TrimSuffix(ctx context.Context, args ...object.Object) object.Object

TrimSuffix is a wrapper function around [trimSuffix] that implements object.BuiltinFunction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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