strings

package
v0.0.0-...-5ab7420 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s string, substr string) bool

Contains reports whether substr is within s.

func HasPrefix

func HasPrefix(s string, prefix string) bool

func HasSuffix

func HasSuffix(s string, suffix string) bool

func Index

func Index(s string, substr string) int

func LastIndexByte

func LastIndexByte(s string, c byte) int

search index of the specified char from backward

func Split

func Split(s string, ssep string) []string

"foo/bar", "/" => []string{"foo", "bar"}

Types

This section is empty.

Jump to

Keyboard shortcuts

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