common

package
v0.0.0-...-c41d04c Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfNotExists

func AppendIfNotExists(slice []string, element string) []string

func Check

func Check(err error, message string)

func CheckPanic

func CheckPanic(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) ExtractPrefixUntil

func (s *String) ExtractPrefixUntil(subPath 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) TrimSpace

func (s *String) TrimSpace() *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) Get

func (s *StringSlice) Get(index int) string

func (*StringSlice) Join

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

func (*StringSlice) Values

func (s *StringSlice) Values() []string

Jump to

Keyboard shortcuts

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