str

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 582

Documentation

Overview

Package str contains utilities for string manipulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comma

func Comma(csv string) []string

Comma splits by comma a string and returns a list of the non empty parts.

func SplitBy

func SplitBy(sv string, sep string) []string

SplitBy splits by a separator a string and returns a list of the non empty parts.

func Trim

func Trim(s string) string

Trim trims a string from white spaces.

func TrimLeft

func TrimLeft(s string) string

TrimLeft trims the left part of a string from white spaces.

func TrimRight

func TrimRight(s string) string

TrimRight trims the right part of a string from white spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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