Concepts of programming
The Go Programming Language
by /u/NiCMAAAA
20h ago
Hi guys. I am relatevly new in programming world. I maybe have around 500-1000 hours coding. I was learning html, css and JS/TS, all basic stuff. I touched little bit od algorithms and data structures. I want to learn backend using Golang. My question is, can i learn deeper programming concepts using Go as main language? Will i be able to use these concepts in other languages aswell? Can i learn EDD and Domain driven design with Go. Can i learn OOP properly? Do you guys have good roadmap for Golang? Do i need lower abstraction level langauge to become better software engineer? Can i become go ..read more
Visit website
Perfomance Dropdown
The Go Programming Language
by /u/midniiiiiight
20h ago
Hello, i am trying to write my project. It is based on cpu calculations, as i am new to golang, tried to multithread it but perfomace was so low, so i decided to launch multiple instances at the same time using my script on python. If i'm running one instance, the golang process eats 12.5% of cpu But if i running multiple instances, it's starts eating 100% of cpu, but perfomance is still on the same level. When I did this trick with JavaScript, everything worked as it should. Additional information : I am using external libraries, and after the first instance finishes job, other instances doi ..read more
Visit website
Sad to see that the Buffalo repo has been archived. So long, my friend!
The Go Programming Language
by /u/preslavrachev
20h ago
submitted by /u/preslavrachev [visit reddit] [comments ..read more
Visit website
What are some tools, hacks or pieces of advice that have a very positive impact on code quality and development experience?
The Go Programming Language
by /u/dondraper36
20h ago
Apparently, most Go engineers are familiar with the most common tools like gofmt, goimports and the like. This is a great first step towards consistency and code quality. Share your less well-known advice on what you do and use to improve your team's dev experience. I will start: instead of using Docker Compose, I capitalize on the benefits of Go and Goland by setting up a bunch of XML configs for all our services. Then any developer can just get those, plug in secrets from the password vault and spin up the services locally. submitted by /u/dondraper36 [visit reddit] [comments ..read more
Visit website
Jupyter to HTML converter
The Go Programming Language
by /u/DealEnough9735
20h ago
I have recently written nb -- a package to convert Jupyter notebooks to HTML. Initially done for a feature I was building for another company, I decided to share it in case someone's looking to having a lightweight CLI tool or using this on the backed to display Jupyter notebooks in their app. The package comes with a reasonably complete default configurations, and features several extensions for adding syntax highlighting (nb-synth), rich Markdown rendering (goldmark-jupyter), and some other goodies to the output. Most that anything else, I would appreciate it if you could take time and shar ..read more
Visit website
Introducing LoveYourStack (Lys) - fast development of CRUD REST APIs for Postgres
The Go Programming Language
by /u/LoveYourStack
20h ago
Hey guys, I made a library to enable fast development of CRUD REST API apps using a Postgres database. It uses generic database access and HTTP handler funcs rather than a framework or code generation. It might be worth checking out if you use Postgres and are a database-first type of developer. The library is: https://github.com/loveyourstack/lys There is also a sample application showing how it can be used: https://github.com/loveyourstack/northwind This is my first open source project, so advice and contributions are most welcome! Thank you :) submitted by /u/LoveYourStack [visit reddit ..read more
Visit website
Why we need interface variables?
The Go Programming Language
by /u/maverickguy_
20h ago
I kind of get what we can do with interfaces, but I don't understand why we need to create interface variables. package main import "fmt" type point struct { x, y float64 } type circle struct { center point radius float64 } type printer interface { print() } func main() { p := point{3, 4} c := circle{point{0, 0}, 3.14} // Question: Why we need to declare the interface variable var prn printer prn = p prn.print() prn = c prn.print() // Why this doesn't work: // p.print() // c.print() } func (p point) print() { fmt.Printf("X: %.2f Y: %.2f\n", p.x, p.y) } func (c circle) print() { fmt.Printf("C ..read more
Visit website
Replicate Meta's Python AES-256 GCM Encryption In Go
The Go Programming Language
by /u/hillzy911
20h ago
I am working on Meta's Whatsapp Flows API and decided to take up on the challenge in Go. Part of the implementation requires me to encrypt a response using AES-256 Encryption and I have managed to have it working in Python. Problem is when I attempt to do the same in Go, I get a different result. Can someone help me replicate the following code, input and output in go please: Python Implementation: import json import os import base64 from base64 import b64decode, b64encode from cryptography.hazmat.primitives.asymmetric.padding import OAEP, MGF1, hashes from cryptography.hazmat.primitives.cip ..read more
Visit website
Large file processing?
The Go Programming Language
by /u/mirusky
20h ago
I would like to know if anybody has recommendations of books, videos, articles... About large file processing. I'm talking about 10gb file at least and at maximum 50gb. The structure is known, but has some fields that are array like. For example [{key: "", value: ""}] or a more complex structure. Currently some files are CSV and others are parquet. How can I read that amount of data as faster as I can? submitted by /u/mirusky [visit reddit] [comments ..read more
Visit website
Seelf v2: a self-hosted deployment platform written in Go
The Go Programming Language
by /u/Yuukan
20h ago
One year ago (omg), I published the initial version of my personal project named seelf. My first true Golang project. Today is the official release of the v2.0.0 and I'm so proud to reach it! I've put a lot of work on this release, especially on the documentation. There is still a lot of work to be done but this was a huge milestone for me. The big change for this version is the ability to deploy your applications on remote targets. For those who don't know seelf, it's a lightweight, easy to understand self-hosted deployment platform: https://github.com/YuukanOO/seelf . Got a working local do ..read more
Visit website

Follow The Go Programming Language on FeedSpot

Continue with Google
Continue with Apple
OR