Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages