Skip to content

tobiaszheller/strmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strmod

strmod allows to modify string in very readable way.

It is helpful when you need to do multiple operations on single string, like trimming, replacing etc.

Currently it supports most string operations from stdlib strings package and few custom made.

in := "Some text/Other text/Something else "

out := strmod.Modify(in,
	strmod.SplitAndReturnLastPart("/"),
	strmod.TrimSpace(),
	strmod.ReplaceAll(" ", "_"),
	strmod.ToLower(),
)
fmt.Println(out)
// something_else

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages