strutil

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(str string, ss []string) bool

Contains determines whether the str is in the strs.

func LCS

func LCS(s1 string, s2 string) string

LCS gets the longest common substring of s1 and s2. 最长公共子串 Refers to http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substring.

func ToBytes

func ToBytes(str string) []byte

ToBytes converts the specified str to a byte array.

func ToStr

func ToStr(bytes []byte) string

FromBytes converts the specified byte array to a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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