String

package
v0.0.0-...-70eba91 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Set(string) Result.Interface
	ToGoString() string
	Split(string) Result.Interface
	Length() int
	Concat(Interface) Result.Interface
	Contains(substr string) bool
	Replace(old, new string) Result.Interface
	Upper() Result.Interface
	Lower() Result.Interface
	Trim() Result.Interface
	Equal(Interface) bool
	StartsWith(prefix string) bool
	EndsWith(suffix string) bool
	Format(args ...interface{}) Result.Interface
	IsNull() bool
}

func New

func New(options ...Option) Interface

String constructor.

Called without the functionnal parameter String.WithGoString(), set the field value with an empty Go string.

Usage

	s1 := String.New()
    s2 := String.New(String.WithGoString(`Hello World!`))

func Null

func Null() Interface

Null returns the Null-Object String.

type Option

type Option func(*data)

func WithGoString

func WithGoString(value string) Option

Functional parameter to set a String value field when calling the New constructor.

Usage

s := String.New(String.WithGoString(`Hello World!`))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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