Skip to content

asciifaceman/rslice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rslice

test workflow Go Coverage Go Report Card Go Reference

Some operations for working with []rune thingies and stuff which may be particularly useful for things like justifying text, manipulating strings, or just being a dang hunk.

I mostly wrote this to lift it out of tooey

Some Example Usage

s := []rune("    TEST STRING")
s = ShiftWhiteSpaceRight(s)

> "TEST STRING     "

s := []rune("ABCDEF")
s = ShiftLeft(s)

> "BCDEFA"

See the library's tests for extensive example usages