videos
go-i18n
Our great sponsors
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.
videos
- NvimTree vs NeoTree
-
Discussion: about "go install" versus brew when available
You can also do something similar with direnv for example (see 1 and 2); and even better if you use the tools.go paradigm then you can have different versions of your binaries relative to your project as well.
-
How to generate translations for multiple packages inside same module
Example for reference.
-
Go Package for testing HTTP interactions: github.com/dnaeon/go-vcr
Please refer to the full example code for more details.
-
Go Package for Mocking HTTP Traffic: github.com/h2non/gock
There's a simple CLI tool I built for requesting OpenWeather information using their API, please refer to the final repository for actually running the full examples.
-
Set struct in Redis
You don't mention what package you're using, but if you're using github.com/go-redis/redis/ you can marshal your struct using encoding/go and then use the SET and SET commands because for Redis everything is bytes, see https://github.com/MarioCarrion/videos/blob/main/2021/03/11-golang-microservices-caching-redis/redis.go I have video covering that exactly: https://youtu.be/wj6-w0DLKRw
-
Building Microservices in Go: Accessing PostgreSQL Databases - Part 1
The full code example mentioned in this post is available on Github, please make sure to read the README for specifics.
-
Building Microservices in Go: Caching using memcached
The code of the examples below are available on Github.
-
Go Package for Equality: github.com/google/go-cmp
Below there are some code snippets, please refer to the final repository for actually running the complete code examples.
-
Go Tools: For database schema migrations
Repository including the code example.
go-i18n
- Internationalization best practices for front-end developers
-
an easy way to generate translations for your Go app
Thanks for sharing, from a quick read this looks easier to maintain than nicksnyder/go-i18n.
-
How to build a go library that supports i18n and make these translations available to client apps (CLI ONLY)
I am using Nick Snyder's go-i18n for translations. I am also building a go library intented to be imported by either by other libraries or cli executables. All of the documentation I have seen about supporting i18n assume this is being used in an app, but don't cover the scenario where this is being implemented in a library.
-
How to generate translations for multiple packages inside same module
On a different note you may consider exploring nicksnyder/go-i18n as well, it simplifies things a bit.
-
Implementing i18n in go libraries designed to be consumed by go cli's
I am trying to get to grips with i18n in Go but finding that most articles on the subject are either inadequate or geared towards web applications. This query is specifically for cli applications and libraries. The kind of articles I've looked at so for are i18n managing translations and internationalization i18n go. I have also investigated using Nick Snyder's go-i18n, but the more I learn, the more I'm coming to the conclusion that it's not necessary for my needs.
-
go-i18n VS spreak - a user suggested alternative
2 projects | 16 May 2022
-
Golang and Locale
What you are looking for is I18N like https://github.com/nicksnyder/go-i18n
-
How to localize Go app with go-i18n and Localazy
This article will show you how to prepare your Go project for localization using a very popular go-i18n package.
-
🈂️ An easy way to translate your Golang application
I've looked at many packages for this operation (including the one built into the Go core), but nicksnyder/go-i18n was the only one I enjoyed working with in my projects. We will create our demo application using this particular package.
What are some alternatives?
Memcached - memcached development tree
icu - Cgo binding for icu4c library
tern - The SQL Fan's Migrator
universal-translator - :speech_balloon: i18n Translator for Go/Golang using CLDR data + pluralization rules
gobuffalo/pop - A Tasty Treat For All Your Database Needs
prose - :book: A Golang library for text processing, including tokenization, part-of-speech tagging, and named-entity extraction.
migrations - SQL database migrations for Golang go-pg and PostgreSQL
go-nlp
go-database-sql-tutorial - A tutorial for Go's database/sql package
sentences - A multilingual command line sentence tokenizer in Golang
gock - HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
locales - :earth_americas: a set of locales generated from the CLDR Project which can be used independently or within an i18n package; these were built for use with, but not exclusive to https://github.com/go-playground/universal-translator