faststringmap
stringFormatter
faststringmap | stringFormatter | |
---|---|---|
1 | 3 | |
60 | 48 | |
- | - | |
0.0 | 7.6 | |
over 1 year ago | 3 months ago | |
Go | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
faststringmap
-
Faster string keyed maps in Go
We were using Go map[string]int to validate the strings and obtain the index in the list. However the map lookups were consuming a lot of compute time. I wondered whether this could be significantly reduced. I looked around and didn't immediately find anything. So I came up with https://github.com/sensiblecodeio/faststringmap which gave us a 5x performance improvement on map lookups and a 25% reduction in overall CSV processing time.
stringFormatter
-
Format a text in GO better than fmt
Today we could say that there is one more text formatting utility/lib that has all fmt features, and this library processes text faster, which in some cases could be important. Please give us a star on GitHub and subscribe.
-
Make you Go code work 1.5x faster OR even more
Performance is a key thing of everything, we (humans) don't like to wait and waste our time. Therefore, sometimes quick solution as most of the managers suppose are better than slow but with good engineering and design. But today we are not speaking about management, but about code performance. We have a small text formatting library that allows us to format text using a template in convenient on our view way. These not only formatting function do what fmt.Sprintf does in more convenient way but also provide an additional features. Previous versions of our module were loose in performance to fmt.Sprintf, but since 1.0.1 we are better. And today we are going to tell how to make any golang code work faster.
-
String formatting in Golang
It’s not very convenient because we have to pass the "Smith" argument twice. And that’s just one duplicate value, imagine how confusing it would get if we had to deal with a whole bunch of them. So, after scratching my head for a little while, I decided to invent my own wheel and make a string formatting like those in C# or Python available in golang. I made a little library currently consisting of two formatting functions which you can find here. My functions allow me to format a string using either indexed {0}, {1}:
What are some alternatives?
searchreader - Search single bytes.Reader with multiple strings.Readers with or without case sensitivity
go-str2duration - Convert string to duration in golang
goutil - 💪 Helper Utils(700+): int, byte, string, array/slice, map, struct, dump, convert/format, error, web/http, cli/flag, OS/ENV, filesystem, system, test/assert, time and more. Go 常用的一些工具函数:数字,字符串,数组,Map,结构体,反射,文本,文件,错误,时间日期,特殊处理,格式化,常用信息获取等等
gobeam/Stringy - Convert string to camel case, snake case, kebab case / slugify, custom delimiter, pad string, tease string and many other functionalities with help of by Stringy package.
sttr - cross-platform, cli app to perform various operations on string
strutil-go - Golang metrics for calculating string similarity and other string utility functions