Skip to content

Chunk your text without cutting the words off.

License

Notifications You must be signed in to change notification settings

datumbrain/gochunker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gochunker

Chunk your text without cutting the words off.

Usage

package main

import (
	"fmt"

	"github.com/fahadsiddiqui/gochunker/chunker"
)

func main() {
	chnks, _ := chunker.Chunker("hey, what's up what are you doing these days", 12)
	for _, ch := range chnks {
		if ch != "" {
			fmt.Println(ch)
		}
	}
}

Author

Fahad Siddiqui

About

Chunk your text without cutting the words off.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%