Go / Golang News

I'm new to proposing features, so I was told to post here. The following code: switch Value.(type) { case material: materialArr[y][x] = Value } Will refuse to compile, producing the fol...

Hi everyone. How do you handle the error in web application?. In my case. I often have to pass errors from the repository layer to the handler layer. This error is an error about operate database. It...

I am building an API using the clean architecture and I have come across a case in which I need to share some logic between 2 usecases (for example, a sendEmail function), how should I approach this?...

#324 — August 7, 2020 Unsubscribe  |  Read on the Web Golang Weekly Boids in WebAssembly Using Go — A boid (bird-oid) is a “simulated bird-like object” a...

I have some have directory called resolver with sub-directories inside of it like this: /resolver /user somefile.go resolver.go They all belong to the package resolver, but i...

https://medium.com/@9c196e52f3c3/go-try-to-avoid-pointers-for-nil-values-3e995a54b26d

Hello all I have implemented an ordered goroutine safe map. https://github.com/m-murad/ordered_sync_map Please give some inputs if this can be made better.

Dixer, the first binary-only ETL, pipelines multiplatform is out! Developed in Go, you can do data migration, data transformation, file and ftp operations, http operations and more! Support for...

Hey all, This is a question about best practices. When designing a library, there are broadly three categories of methods you'll have in your API: 1. Getters 2. Setters - I'm including the co...

Hello guys, long time lurker on this sub but never posted before. I created json-server, a CLI tool to create a dummy REST API from a provided json file with zero coding in seconds. For each prov...