strings

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LastJSON

func LastJSON(str string) ([]byte, error)

LastJSON find last json from string

func RangeToSlice

func RangeToSlice(formatStr string) ([]int, error)

RangeToSlice transform "1-5,7" to [1,2,3,4,5,7]

func SliceContains

func SliceContains(slice []string, str string) bool

SliceContains check the slice contains str or not, if exist return true, else return false.

func SliceDelete

func SliceDelete(slice *[]string, str string) bool

SliceDelete str from slice, if success return true, else return false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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