Unanswered Questions
104 questions with no upvoted or accepted answers
6
votes
0
answers
3k
views
Implementing a TCP client in Golang
I am very new to concurrent programming in general and want to know if my implementation is thread-safe.
I'm currently working on implementing a TCP client in golang. The service listens on a port ...
6
votes
0
answers
2k
views
Gin web framework middleware
As a beginner in Go, I'm seeking feedback on a web framework middleware I wrote up. I reckon that knowledge of the web framework is not needed for the code review.
The goal of this middleware is ...
5
votes
0
answers
395
views
CLI Utility Go - First Go Program
TLDR
Python developer; first project in Go; looking for feedback :)
Repo
Overview
I just started learning Go (need to use it at work).
As a fan of project-based learning, I put together a small ...
5
votes
0
answers
150
views
Simple HTTP router package
I have created a router/micro-framework. I have split my code into multiple files by responsibility. All files are in the same directory. Would you recommend any way of improving it ? The most ...
5
votes
0
answers
251
views
Equivalent binary trees (structure & values)
I am following the Golang tour and I have been asked to build a couple of functions to manipulate binary trees.
My code runs as expected, but I would like to know if I could further improve my code. ...
5
votes
0
answers
83
views
Most intuitive way to register "commands" in an extensible IRC bot in Go
I'm writing an IRC bot as a toy project, and one of the goals is to be easy and straight-forward to implement and register new commands.
As I'm new to Go, I don't know which would be the "Go way" for ...
4
votes
0
answers
544
views
Simple RESTful counting API in Golang
Description
This is a simple (and hopefully) RESTful API in Golang that uses Redis. I have next to no prior experience in Golang and absolutely no prior experience with Redis. The API is a simple ...
4
votes
0
answers
140
views
Security of cookie based authorization Golang
I still write login system in Go(Golang) using cookies.But my system is still not secure enough.Can you review my code and provide some suggestions on how to improve the security?Previous question.
...
4
votes
0
answers
152
views
Running DNS lookup over million IP addresses
I need to run over all the IP addresses on the CIDR 10.96.0.0/12 network.
There are 1,048,574 IP addresses.
I created a multi ...
4
votes
0
answers
498
views
A task scheduler with persistence
I wrote a task scheduler package with data persistence in Go.
However, the logic seems super messy... even it seems passed all tests.
Is there any better way to structure the code and finish few ...
4
votes
0
answers
676
views
Scraping website and print them via routers
I've been working on a personal project for a while which simply extracts some information from a website and save them as JSON files. Then I've decided to move those scraping functionalities to the ...
4
votes
0
answers
71
views
Type System library
I would like some reviews of my Type system library in Golang that I am building for a compiler project.
Here are external links to the versioned source files,
types.go
builtins.go
The first file:
<...
4
votes
0
answers
229
views
Get nearest driver from 2.5 millions of data using mongodb
I have created 2.5 millions drivers dummy data, in this case lets say the drivers are moving around in the city. The driver's document look like this :
...
4
votes
0
answers
2k
views
Encode object to JSON and encrypt with AES (with tests)
While the task at hand is relatively straightforward, it turned out AES in Go is a bit clunky so I was wondering if this seems right. Also, any tips on Go coding in general are more than welcome.
<...
4
votes
0
answers
67
views
Simple Web Analytics Logger
I've been learning Go for a few months and this is one of my first projects with it. It's an analytics beacon for my low-volume blog; it emits a tracking pixel and logs parameters from the browser to ...