forked from sneak/util
daaea4e10f483459db92a4f7f2cf8047af160d5d
TruncateString returns at most the requested number of characters from the start of a string, counting characters rather than bytes so a multi-byte character is never cut in half. Comes with a doc comment and table-driven tests. (closes #5) Model: opus-5
sneak/goutil
This is a bunch of little general-purpose go utility functions that I don't feel comfortable including as-is in my normal projects as they are too general, so I put them here.
Suggestions are welcome.
Really I think most of these should probably be in the stdlib.
License
WTFPL (free software, no restrictions)
Author
Description
Languages
Go
99.6%
Makefile
0.4%