https://github.com/reddec/chop-text
Golang library - Chop string into slices
https://github.com/reddec/chop-text
go golang string-manipulation
Last synced: 10 months ago
JSON representation
Golang library - Chop string into slices
- Host: GitHub
- URL: https://github.com/reddec/chop-text
- Owner: reddec
- License: mit
- Created: 2017-08-08T16:41:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-08T16:45:59.000Z (almost 9 years ago)
- Last Synced: 2025-08-23T23:13:09.461Z (10 months ago)
- Topics: go, golang, string-manipulation
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chop string
Very simple library to chop string to slice
Examples:
```go
ch:=Chopper{Slices: 3, Sep: '/', SliceSize: 3}
println(ch.Chop("abcdefxyz123"))
// will print: abc/def/xyz123
```
[Documentation](http://godoc.org/github.com/reddec/chop-text)