The Go Programming Language
0 FOLLOWERS
Gophers of the world unite!
The Go Programming Language
14h ago
What is go-mongox?
go-mongox is a generics-based library that extends the official MongoDB framework. Utilizing generic programming, it facilitates the binding of structs to MongoDB collections, aiming to provide type safety and streamlined data operations.
go-mongox introduces chainable calls for smoother document handling and offers a rich set of bson builders and built-in functions to simplify the build of bson data.
Moreover, it supports plugin-based programming and incorporates various hooks, offering flexibility for custom logic before and after database operations, thus enhancing the ap ..read more
The Go Programming Language
14h ago
Hi! I'm new to backend development and have been learning go for the past couple of days. It has been a fantastic experience after finding out how pgx functions.
I have watched a couple of YouTube videos and read some basic blogs about slog but I still can't figure out where to save those logs or how to handle them in production.
Stocked to learn more! Any help is appreciated.
submitted by /u/FitGrape1330
[visit reddit] [comments ..read more
The Go Programming Language
14h ago
Hi,
I'm new to Golang and also web development. I'm thinking about how to authenticate and could have some input on that. The main problem is that every resource is telling something else on whats good & whats bad, thats for session tokens, JWT, Cookies etc. What do you think? It's just a simple side project, but eventually I need to authenticate the user from the web app but also authenticate other devices like RPi etc. to use the API. How would you structure that?
And for the implementation part: I'm using HTMX + Templ with the net/http server. I inject a middleware function for some ro ..read more
The Go Programming Language
14h ago
submitted by /u/Alternative-Radio3
[visit reddit] [comments ..read more
The Go Programming Language
14h ago
Hey everyone,
I'm excited to announce the release of my first ever Golang package:
GoES - Go Evolution Strategy for Black Box Optimization!
GoES is a library that implements Adaptive Evolution Strategies (ES), a powerful optimization technique for problems where the objective function is non-differentiable or has noisy outputs. This makes it ideal for various machine learning and engineering tasks where traditional gradient-based methods might struggle.
What's cool about GoES?
Pure Go Implementation: GoES is written entirely in Go, making it lightweight and easy to integrate into your existi ..read more
The Go Programming Language
14h ago
https://blog.carlana.net/post/2024/golang-cmp-or-uses-and-history/
submitted by /u/RecognitionDecent266
[visit reddit] [comments ..read more
The Go Programming Language
1d ago
Hi,
I am currently facing some problems with shared Memory. I have a C program that is constantly updating values in a shared memory segment. I now want to read the content of the Segment periodicly.
The Problem is that the C part is saving the data with a struct like:
#include <sys/shm.h> #include <errno.h> #include <stdio.h> typedef signed int INT32; typedef struct Memory { INT32 status; INT32 pkt_index; INT32 data_cnt; INT32 data[70]; }; int setShmData() { key_t ShmKEY=12345689; int ShmID; struct Memory *ShmPTR; int err=0; ShmID = shmget(ShmKEY, sizeof(struct Memory), 06 ..read more
The Go Programming Language
1d ago
submitted by /u/anujtomar_17
[visit reddit] [comments ..read more