stringUtils

package
v0.0.0-...-62718c5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

func Cleanup

func Cleanup(sentence string) string

cleanup remove none-alnum characters and lowercasize them

func EnSureUTF8

func EnSureUTF8(message string) string

func GetStopwords

func GetStopwords() map[string]struct{}

func IsAcronym

func IsAcronym(text string) bool

func IsStopword

func IsStopword(w string) bool

func ReadFile

func ReadFile(path string) (bytes []byte)

ReadFile returns the bytes of a file searched in the path and beyond it

func ReaderToString

func ReaderToString(r io.Reader, bufferSize int) chan string

func StringInSlice

func StringInSlice(element string, slice []string) (bool, int)

StringInSlice looks for a string in slice. It returns true or false and position of string in slice (false, -1 if not found).

Types

This section is empty.

Jump to

Keyboard shortcuts

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