heartPosts from the community...
Link
@faun shared a link, 2 years, 1 month ago

Build a Go API with wallet authentication, JWT, Gin

This tutorial explains how to implement one-click wallet sign-in using Go, Gin, SIWE (Signin with Ethereum), and JWT. It covers generating a nonce, verifying signatures, creating and retrieving user data, generating JWT tokens, and implementing authentication middleware for protecting routes. The tu..

Build a Go API with wallet authentication, JWT, Gin
Link
@faun shared a link, 2 years, 1 month ago

The absurd cost of finalizers in Go

The Go programming language allows calling C code easily. Memory allocation and deallocation can be handled manually or automatically using Go's garbage collection. However, the automatic approach with finalizers significantly impacts performance, making it nearly ten times slower than manual memory..

Link
@faun shared a link, 2 years, 1 month ago

A Comprehensive Guide to Zap Logging in Go

Zap is a structured logging package developed by Uber and designed for Go applications. According to their GitHub README document, it offers "Blazing fast", structured, leveled logging with minimal allocations. This claim is supported by their benchmarking results, which demonstrate that Zap outperf..

A Comprehensive Guide to Zap Logging in Go
loading...