common

package
v0.0.0-...-90ef764 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, message string)

func IsError

func IsError(err error, message string) bool

func SilentCheck

func SilentCheck(err error, message string)

Types

type String

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

func NewString

func NewString(value string) *String

func (*String) ReplaceAll

func (s *String) ReplaceAll(old string, new string) *String

func (*String) Split

func (s *String) Split(separator string) *StringSlice

func (*String) ToLower

func (s *String) ToLower() *String

func (*String) Trim

func (s *String) Trim(prefix string) *String

func (*String) TrimIndex

func (s *String) TrimIndex(index int) *String

func (*String) TrimPrefix

func (s *String) TrimPrefix(prefix string) *String

func (*String) UnescapeString

func (s *String) UnescapeString() *String

func (*String) Value

func (s *String) Value() string

type StringSlice

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

func (*StringSlice) Join

func (s *StringSlice) Join(separator string) *String

Jump to

Keyboard shortcuts

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