Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/golang icon
r/golang icon
Go to golang
r/golang
A banner for the subreddit

Ask questions and post articles about the Go programming language and related tools, events etc.


Members Online

New at Go? Start Here.

newbie

If you're new at Go and looking for projects, looking at how to learn, looking to start getting into web development, or looking for advice on switching when you're starting from a specific language, start with the replies in this thread.

Be sure to use Reddit's ability to collapse questions and scan over the top-level questions before posting a new one.

Share
Sort by:
Best
Open comment sort options
[deleted]
[deleted]
Edited

Comment removed by moderator

[deleted]
[deleted]

Comment removed by moderator

[deleted]
[deleted]

Comment removed by moderator

why are you copying me too

More replies
More replies

Hey ! I'm fairly a newbie to go and I wanted to learn how to build backend applications with htmx and templ. Do you think you'd have any resources for where I can learn those from?

[deleted]
[deleted]

Comment deleted by user

xhtml isn't the same thing as htmx. There are lots of resources for go and htmx. I have only used htmx with Go's html/templates, no templ.

You are right sorry. I don't use either

More replies
More replies
[deleted]
[deleted]

Comment removed by moderator

[deleted]
[deleted]

Comment removed by moderator

Hi, new person to go here, how do I structure my project then? 😅😅😅

Edited

It depends a lot on what you are doing and how big the project is.

This is good advice. https://dave.cheney.net/practical-go/presentations/qcon-china.html#_project_structure

Basically, I would ask Google bard or chatgpt because just because "you think" it's a good naming or good structure doesn't mean others will. I went a few years thinking I'm making things simple by calling folders a short name when in reality I was making it harder for others. Sometimes longer names help a lot for beginners. People rarely keep them in mind and it's because they think they are doing simplicity...

The rule of thumb is basically make sure you are doing things with great purpose. Meaning don't just do things because a simple idea pops in your head. Think about that folder and code. What does it actually look like to a beginner? Are you making things harder because you think it will be tied somewhere else?

Also, internal has an actual use case. It prevents importing.

There is the Google style guide. https://google.github.io/styleguide/go/

There is also the Uber style guide https://github.com/uber-go/guide/blob/master/style.md

more reply More replies
More replies
More replies
More replies
[deleted]
[deleted]

Comment removed by moderator

[deleted]
[deleted]

Comment removed by moderator

This would be awesome as a repo/site and I'm sure the community would help you maintain it! (i.e. me)

More replies
More replies
More replies

I really enjoyed using https://gobyexample.com when I was starting out. Found all of the topics to be easy to follow, and I find myself referring back to it every now and again when I need a quick refresher.

As others have mentioned, go.dev docs are also very good. Effective Go is a really well written document, in my opinion, for new starters.

Start here https://go.dev/doc/

I have been writing Go tutorials at https://golangbot.com/learn-golang-series/ for quite sometime. Hope it helps.

It's look great.

Thank you

More replies
More replies

I'm just starting Go, what are good books or websites to learn about Go?

I’ve really liked Learn Go with Tests: https://quii.gitbook.io/learn-go-with-tests/

You learn go concepts along with writing and running tests and benchmarks.

Vouch! This is also involves learning best practices, mainly test driven development.

For sure my fav resource

Agreed! I've been professionally developing with Go for about a year now, and I learned a lot from that course.

More replies

Hey, thanks that for that. I have taken a look at the intro. Looks interesting. I will take a bit of a further look. I had previously skipped over it, thinking learning with tests almost felt like learning it backwards, and might not cover the real fundamentals of the language I was looking for - but if you recommend it I will take another look!

I like this : )

More replies

https://roadmap.sh/golang

A pretty good resource for all things development related - lots of useful materials for building up your knowledge as a developer as well

Thanks for that. I looked at that previously but was a bit put off by the note saying it was written for the 2009 release. Is it still relevant? I guess as a beginner the changes might not matter as much as getting the syntax down?

Idea of this article is still up-to-date. Author left the note on the beginning of article:

Note added January, 2022: This document was written for Go's release in 2009, and has not been updated significantly since. Although it is a good guide to understand how to use the language itself, thanks to the stability of the language, it says little about the libraries and nothing about significant changes to the Go ecosystem since it was written, such as the build system, testing, modules, and polymorphism. There are no plans to update it, as so much has happened and a large and growing set of documents, blogs, and books do a fine job of describing modern Go usage. Effective Go continues to be useful, but the reader should understand it is far from a complete guide.

Yeah, that's what worried me a bit. Feels like a lot of stuff not in it. But sounds like it might be a good starting point at least. As has the nice advantage of being free. I will definitely take a read through I think. Ultimately it is going to be a case of reading a few things and then googling around from there I think.

more replies More replies
More replies
More replies
More replies

You should start a project. I doesn't have to be a big one. But it's a good heuristic approach to learn a new language. You'll suddenly find yourself stuck on something, and that'll make you start some research on that, and so you'll be accumulating experience and confidence in the language. Even if you know nothing, with just knowing how to install it and run it, you're good to gol.

Really looking forward to an answer to this one. Specifically for people who have very little coding background at all. A lot of books etc for Go seem to focus on people learning Go as a second language rather than complete beginner if anyone has anything to recommend for that?

Learn C first and transition. I honestly believe that to be the best path for success. Do Harvard’s CS50 (on YouTube)

Really? Do you reckon? Going C always feels like such a hardcore route I never even thought about it for a first language. I will take a look at that YouTube course.

No, it's bad advice. If you want to learn Go you should learn Go, not a different language.

Going C first flatten the terrain a lot as you're tackling the giant first, C gives you the knowledge of how your program works underlying better thanhigh-level langauges do, thus you can learn every other language easily.
I'm currently learning Go, coming from a C++ background I feel very comfortable and proficient tbh

More replies
More replies
More replies
More replies

I have templated my answer to this question..

Just going to point at a previous answer to pretty much the same question, seems to come up about every fortnight.

https://www.reddit.com/r/golang/s/odBvaXUMcZ

Good luck.

The Go Programming Language is slightly outdated (no generics or modules) but it is one of the best books I've read on any programming language:

https://www.gopl.io/

Alan Donovan is pretty active in the community and Brian Kerrigan has been co-authoring books with Rob Pike since the 80s. It's a really good book.

I'm looking to get into web development, what frameworks should I use/are best/are most common?

The most common answer is to use net/http directly and that frameworks are not necessary.

I have a bit of a spin on that. net/http is what a lot of other languages would call a "minimal framework". It defines how a web request comes in and how it is handled, but does not on its own do much more than that. But it does it in a fairly standard way across the Go ecosystem. As a result, the things we typically call "frameworks" in the Go ecosystem like gin or echo aren't really themselves free-standing frameworks. They plug in to net/http themselves and extend and augment it, rather than replace it. The community commonly says that the best framework is "no framework", but I would say net/http already is one. It's just "minimal" rather than fully featured, which in the web framework world is a category of framework. (For instance, web.py is a Python example.)

As a result, they can be mixed and matched, and it is possible to create middleware that works with almost all the Go web frameworks by writing to the net/http.Handler interface.

My advice is, budget a week to spend on net/http directly. It is a good idea to get a feel for what it does itself and how to utilitize it to write some simple stuff. You may find it is all you need; in the case of an API-driven website without strong pre-existing URL structure requirements this is actually reasonably likely. In those cases you may just mix in a couple of individual components (a popular source for high-quality implementations of these is the gorilla project) and call it a day.

But if it is not enough, at this point you will have enough information to evaluate the Go framework landscape and come to your own conclusions.

One word of warning. There is a somewhat popular framework called fasthttp. There is nothing wrong with this project, but it is kind enough to have a note at the very top of its README about how this framework may not be for you. I advise you to read it and take it to heart. fasthttp does what it does by completely reimplementing a web server unconnected to net/http, which means you will be locked into its smaller ecosystem rather than the greater net/http-compatible ecosystem. Many programmers make the mistake of looking out across their options and evaluating their choices on one singular metric: performance. They just blindly choose the fastest. Go web frameworks are not a good place to do this. You may have been bitten in the past by slow frameworks in dynamically-typed scripting languages, or you may just not be thinking about your real requirements, so this may appeal. But Go is fairly fast and net/http is fairly high-performance; used like a static file server net/http can reach about half the speed of nginx on its own. That's actually really, really fast already. Or to put it another way, net/http can crunch through many, many thousands of requests per second on the very smallest VMs you can get and still have time for you to do useful work. Be sure you have a task where that is going to be your bottleneck. In many cases it literally can't be your bottleneck because the work your web pages are going to do is already the bottleneck. You should only take fasthttp if you are looking at something that will be serving literally hundreds of thousands of very small requests per second, and even then I'd benchmark my options. But if you do have that need, fasthttp can be a lifesaver.

Great response.

More replies
More replies

I may not say I am new to golang , I know the basics and i know here and there about go. The problem lies in that I don't know what to do after the basics. I haven't done any projects I don't do frontend.

I am super confused about what to do next

Can someone help me ?

I'd suggest doing adventofcode.com in Go. They are great coding challenges for just about any skill level and will push your learning.

I also learned quite a bit by doing a few of the projects on codecrafters.io, where you build a rudimentary BitTorrent client, DNS server, SQL server, etc. These were interesting because they not only help you practice and improve your coding skills, but they teach you about real-world technologies in the process.

Finally, I'd recommend https://quii.gitbook.io/learn-go-with-tests. It may go over some material you already know, but using a test-driven development (TDD) process. If you haven't tried building projects with TDD, you may be in for a pleasant surprise. It's changed the way I work on my projects.

This is how I learned Go! Advent of code is a great way to learn basics of a programming language

More replies

Start by making simple projects like terminal calculator, then learn how to make a rest api and so on...

More replies

I wanted to contribute this link as well, and found it very helpful while learning: https://go.dev/doc/effective_go

I'm looking for good projects to learn Go with, demonstrate in an interview that I know Go with, or generally use to convince people in an interview that they should hire me with?

Edited

My suggestion for this is a networked chat server.

Start with a server that opens a local listening port that two clients can connect to, and then those clients can send network messages to each other and display them on the other side.

The reasons I like this idea is that A: you immediately play into Go's networking strengths and B: from here you have an almost bewildering array of directions to go to continue to elaborate on your chat app, including but not limited to:

  1. A concept of users so you can have people chatting directly with each other by name. Or channels where people can chat with nicknames like IRC.

  2. Use a TUI or a GUI library to display the chat rather than dumping to screen.

  3. Get on to the web; you can do anything from a Web 1.0 "refresh every five seconds" to server-sent events to a full websocket. Get into authentication and authorization on the web. Split things into distinct API versus web interface. Handle inlining images like Slack does.

  4. Integrate with a database; log messages, store user information for login, store permissions, store history for channels, all sorts of things. Use GORM, use SQL, use Bolt, use anything you like.

  5. Learn about TLS encryption and use TLS for either your web interface or your line protocol.

  6. You'll pretty much have to learn about goroutines to work on this properly, but there's a lot of opportunity to use them beyond the bare bones. For example, you can write some sort of "bot" that sits in a (chat) channel and responds to inputs as its own entity.

  7. Learn about strong testing practices by testing this stuff out. See if you can apply fuzz testing to your protocol.

  8. Learn to break your code into a set of independent packages and develop a non-trivial layout.

  9. Several cloud technologies could be used here, just for the sake of using them:

  • Hosted DBs

  • S3 or equivalent for file sharing

  • Any of the various event busses for communication with the client/server

  • Serverless/EC2/containers/all sorts of things for the deployment of servers or clients

  • Almost anything can be used if it strikes your fancy through some sort of bot

And that's not even a complete list. What I like about this idea is that it starts out at just a couple page's worth of code, but then it expands out into almost arbitrary directions, and at the same time with only a bit of discipline, it is something you can show off at almost any point, starting from those very first two pages of code all the way to your home-made Slack clone. Just tag your functioning code as you go and you'll always have working code to show.

(Just about the only thing I would not recommend is, don't try to write this to be multi-server unless you already know what you're doing with that. You're going to have a very difficult time extending the load to the point that you would actually test that with this project.)

I typically learn a new programming language by building real-world projects too.

I've been publishing them here: https://codingchallenges.fyi/challenges/intro/ hopefully one or two are of interest/useful.

Oh, hey, I saw this on LinkedIn. This is a very, very nice list of challenges!

More replies
More replies

I am from C#. How would you kickstart a new project? I have a basic understanding of packages I would like to use (viper, gorm, templ, htmx, gin, grpc) but I am not sure about the project layout and structure yet. I found this one: https://github.com/golang-standards/project-layout. Would you start by yourself or is there a standard project template that you can recommend?

What kind of project will you be working on? I guess it's some kind of Web API (?)

In my case, I start by myself. But when I got started, I made a good research on project structures. So far, I've got a predefine project layout, which goes like this:

/components  
    /ui  
    /layout  
    /pages  
/database // (x) Unnecessary package since only main.go depends on it  
/docs  
/failure  
/handlers  
/mock  
/model  
/repositories  
/services  
/transfer  
/types  
README.md  
main.go  
middleware.go  
db.go  
pool.go // (x) These instantiations will go in main.go  
routes.go // (x) Routes will go in main.go

This is from a project that I'm just planning. It's a fullstack website that'll use an API and templ for rendering views.

The handlers package is like the controllers, from C#. The failure package is just for application errors. The transfer package is for my Data Transfer Objects (DTOs).

Here's another example: https://github.com/fontseca/noda

Similar then yours. API + htmx + templ. Also somekind of thin ORM and perhaps DI, not sure about that.

More replies

you kinda freestyle it, the project layout will take it shape the more you work at it, atleast thats the way i do it

Though it's good (depends on your taste), a core dev of the golang team posted an issue regarding how its inaccuracy.

But don't worry, Melkey created a cli tool for this exact problem for golang beginners (like me).

https://github.com/Melkeydev/go-blueprint

Think of it like the create-react-app or create t3-app but for golanng.

Here's a run through of the cli https://www.youtube.com/watch?v=1ZbQS6pOlSQ

In my experience as well, the golang-standards/project-layout stumped my progress more than it helped me because there were lots of patterns that I felt was conflicting with most big project examples that I tried to study and applying DDD, hexagonal architecture, and other architectural patterns felt confusing.

Hope this helps <3

More replies

Coming from javascript, is there any open source project which i could contribute to learn?

I've seen this question asked a lot of times on this reddit (and I'm going to begin taking a stronger stance on directing those questions to this thread), but my generic answer, based on the conversations both here and in other language communities is, we can't really tell you. There are so many things that go into deciding to contribute to a particular project that there's just no reasonable condensation of that decision procedure.

I also am not convinced that trying to contribute to open source projects is a great way to learn (generally contributing involves you somehow using some knowledge or skill you have, it's not really an acquisition event on its own), nor do I feel like very many of the people who ask this question follow through anyhow.

What are you interested in?

More replies

https://www.calhoun.io/guide-to-go - from the author of Gophercises.com

If you like learning from books, I would definitely suggest those couple of books.

  • Learning Go: An Idiomatic Approach to Real-World Go Programming, Jon Bodner.

  • The Go Programming Language, Alan A.A. Donovan.

I bought the first one you mentioned. I did about 1/3 of it, and I personally felt like I needed a more intro level course. He does a great job of explaining, and if you have questions he seems to reply rather quickly.

thanks for your feedback 😉

My pleasure.

More replies
More replies

its members only

It was free up until recently

sad

More replies
More replies
More replies
More replies

I'm coming from PHP, anything specific I should know about Go?

The advice to use stdlib as much as possible and avoid frameworks isn't just dogma. IMO it's more about where the advantages and unique aspects of the language align. PHP has amazing frameworks for building full web apps. If you need that, and thus a framework becomes massively helpful, then the app might just be more appropriately built in PHP.

The advice to only use stdlib is also sometimes a bit of dogma. Specific routing requirements require using libraries at least and once you're doing that some features of some of the frameworks become sensible. Just do your homework on the actual tradeoffs.

More replies

I'm a beginner and looking for Go lang friends for work together and learn from each other.

Just found a cool new youtube channel
https://www.youtube.com/@codeheim/featured
It is not mine and I am not affiliated with it in any means

I have an opportunity at a new company that uses Go, and they don't require prior knowledge of the language. I'm an experienced backend software engineer. What resources would you recommend for learning your tech stack guys?

I'm curious, what resources did you pick?

More replies

After writing the blog series Learning Go by examples, I start a series of sketchnotes about Go in order to try to make accessible the Go/Golang programming language.

For the moment, I explained visually Variables and Constants concepts:
https://dev.to/aurelievache/series/26234

If it interest, I will create other sketchnotes :-)

Hello guys , I am starting to learn GO today. I went through all the comments on this post and i just wanted to know I am starting to learn it from the freecodecamp's youtube video for the same. Is it fine? I'll be going through the docs and understand much better once I am done with the vid. The vid is 10 hours long.
Is it the right path?

PS: I need to learn it ASAP!

You might as well just try it out. You can come to your own opinion faster than you can get opinions online. I mean, I understand asking about for-pay courses in advance, but if it's just YouTube videos, go for it. It's not like you get a failing grade if you stop after an hour.

More replies

I'm coming from Java, anything I should know about?

Edited

For Java developer, you should aware, this languages isn't 100% OOP you shouldn't create code as like in Java e.g. struct isn't equivalent of classes. You shouldn't create AbstractFactoryOfSomething.java or another builder, try to build as simple as possible architecture for you app without heavy architecture patterns. I don't mean Factory pattern or Singleton or Stragery are bad. Definitely NO. It's perfectly ok, but you create only when you need.

Code style(in standard library and third-part libraries) isn't the same as like Java e.g. in Go code isn't prefer using descriptive variables e.g. in java you can name some context: "networkingContext" but we Go we prefer using shorten names or single word variable e.g. context or ctx(shortcuts or single char variables is ok too). Read more about naming variables, package, or functions you can read this: https://go.dev/doc/effective_go#names

Structure in project is different between Java and Go. You haven't to create src/com/your.name/program/mongodb....., but in Go we prefer a simple structure e.g. db or mongodb. You can read more about project structure in Go here:

- https://go.dev/doc/modules/layout

- or you can use domain names for packages as like AnothoyGG https://www.youtube.com/watch?v=dJIUxvfSg6A (for me, it was very helpful to understand how can I think about project structure in Go)

And the last words from me about differences between Java and Go. Trust this language. Don't try using some patterns or structures from Java in Go. You can build some simple and beautiful function without Stream<T>, mapper or building apps with magical annotation. You don't need try...catch statement to handle errors, you have simple error interface. The true power in Go is the simplicity.

Downvoted for the link to the g...-s.../p...-l... repo.

Edited

Why? Is it bad source about project structure?

more reply More replies
More replies
More replies

Wow, you dont really like Java do you 😀

Edited

:D I tried to hide my "feelings" about Java. I came from him and I had to fight with habbits and good practices, that are good in Java, but aren't in Go. For me, it wasn't easy and I had to discovery how to write code in other language than JVM languages e.g. Java, Kotlin

I am in the same boat,i learnt C in school then C++ in college and Java at my workplace,i am rewiring my brain to learn Go, its hard to be honest, but hopefully it will be worth it :)

more reply More replies
More replies
More replies
More replies
More replies

I'm currently using the course at: https://boot.dev

I did this ,it's great

More replies

What are some good codebases I can read to learn more about Go?

Edited

The standard library.

An educational project https://github.com/benbjohnson/wtf

There are interesting discussions in https://github.com/benbjohnson/wtf/discussions and

More replies

I'm coming from Javascript, either on the server or on the frontend, anything I should know about Go?

No async/await. Look into Goroutines and Channels.

But not before doing the Tour of Go, it also covers it in the concurrency chapter.

More replies

Try using Builder to build Go projects. Tutorial link: https://youtu.be/FsF0C8Bi2ig

That's pretty neat

More replies

You can check my repository: https://github.com/5ilent5pring/go-noob

For those in the US, getting a local library card is free and can get you access to free udemy courses via gale. Hope this helps!

I want to know where I can find advanced Golang content such as architectural applications and others for studies and advances in the language?

For webrtc, what would be the best approach in go?

How do I compile Golang programs in RPI5? Keeping getting this issue

# runtime/cgo
gcc: error: unrecognized command-line option '-marm'

Or it just refuses to run because incompatible OS

Matt Holiday's youtube playlist on Golang is one of the finest that I have come across. https://www.youtube.com/watch?v=iDQAZEJK8lI&list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6

Edited

Yes. I'm new in Go and I'm terrified. with go mod and imports...where is adequate documentation?

$ go run main.go
package command-line-arguments
imports github.com/go-sql-driver/mysql
imports github.com/go-sql-driver/mysql: import cycle not allowed
$ go mod init
go: /data/golang-with-mysql/go.mod already exists
$ go run main.go
User: user, Database:db
user db2024/04/24 17:28:45 sql: unknown driver "mysql" (forgotten import?)
exit status 1

WTF

I am coming from java background,need to understand actor model https://pkg.go.dev/github.com/asynkron/protoactor-go/actor , is anyone aware of any more resources or a demo project around this?

Can someone tell me why listener.Accept (tcp4) takes ~4 seconds to accept new connection? In other languages this is instant.

It doesn't, something is wrong. Please make a new top -level post to the group, but read the "How to Ask Good Technical Questions" linked in the New page first, because you don't have anywhere near enough to help you.

More replies

Hi Everyone, I'm looking to contribute to some open source project in go lang can you please give me few suggestions

Hey guys, I have question who use Golang at work. How usually golang uses on the project? as main programming language or in pair with another (which one)? Could you please explain some info about what do you do via golang (data transforming) or smth else? I am backend engineer (Python), and use python for web development and data transforming rarely (pandas, airflow). I would like to know about perspective of learning golang to my current tech stack. I am oriented on US companies

Cloud services, web services, CLIs. You don't use golang for data transforming stuff as it is not popular in that realm.

More replies

Can Go compile code that will run on 8bit microprocessors? I'm thinking of AVR or PIC processors. I'd like to be able to use Go instead of something like Rust or C++ but I'm not sure what the situation is. If you can't use Go for 8bit devices I guess I'll just use C instead.

Have you looked into https://tinygo.org/ ?

It took a moment clicking around their docs to find their supported hardware, longer than I thought it would take.

I see some 8-bit support there, but also some text about how limited it can be. I can see how it can be difficult squeezing Go on to that level of processor, since the standard library uses reflect in some key places like fmt and reflect is a fairly large chunk of functionality to be trying to squeeze on to an 8-bit just to print some things. Rust, C, and C++ are all probably better supported at that very, very tiny level.

(Go actually has a printing keyword that is not in fmt, but it would be a constant uphill battle trying to keep fmt and some other popular packages out of your code base, especially if you want other external libraries.)

More replies
More replies

If you prefer learning hands-on rather than watching videos, you may like https://threedots.tech/go-in-one-evening/

Some people mentioned this tutorial to be very good - https://www.youtube.com/watch?v=NNLpEPb2ddE&list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6&index=4. Currently going through it

so I am a data scintist and I was thinking of learning go as a quick and dirty data processing libarary when I want to work with a bigger scale then python lets me.

my c skills are okay tho I cant really get anything done with c because while its super fast It dosent really have stuff like an easy json parser.

any idea for where to start?

The standard library has what you'd need for that.

For multiprocessing, when I was doing this, I generally had a setup like this for cases where I was processing row-by-row:

  1. One goroutine wraps a bufio.Scanner around the io.Reader input, and gathers up a chunk of lines, maybe about a thousand.

  2. Those lines are sent over a channel to a worker. Several workers are spawned to read on that channel. They each JSON parse the line and do... whatever it is they're going to do. Then they JSON marshal the new line into a new []byte and store them all up, to send them down to...

  3. A goroutine responsible for writing incoming lines to the new file or target location.

Variations on that theme can take summary statistics from a lot of lines and then combine them in the final goroutine, etc.

It's a good exercise to set that up, and then once you do the skeleton is useful for a lot of things where you can stream vast quantities of JSON through a single OS process that Python would not be able to handle.

encoding/json in the standard library is also not the fastest parser and you can get some further speed gains by using some of the faster libraries, but those come with tradeoffs of their own. Not terrible ones, but the really fast ones do require a bit more work. Start with encoding/json and if it's already fast enough there's no reason not to stick with it.

for text processing what do I use? in python I would use regx and bs4 and those would be nice especially for the exploratory phase.

also any easy ways to run a bpe tokenizer or even an ml model? I was thinking I could probably do that with a python server like thing but that adds a lot of moving text around and defeats the purpose

Regex is available both in the standard library, albeit in a form you may not be used to, and as a library module, with more of the features you may be used to. (Despite the name I wouldn't consider regexp2 to be "better" or "the sequel"... it's just a different model of regexp. Usually it won't matter which you use but if you need the differences you've got both to choose from.)

I don't know about running models. My guess is generally no. Sadly Python just has the best support for that sort of thing.

I feel like u should be able to write a wrapper around torchlib so I may do that if no one did

More replies
More replies
More replies
More replies

I have more than 7 years of experience in PHP and recently been learning Go, what’s the best approach to work at as a Go developer that pays well and take into consideration my years of experience in web development, even if I don’t have professional experience in Go

for Brazilians, see this channel: https://www.youtube.com/@AprendaGo

[deleted]
[deleted]

Comment removed by moderator

Separation of Concerns. If smth is wrong, you should check on your log for "ERROR:"-s.

Consistency.

Reusability of the code. The classic of programming.

Flexibility. DIY etc. You can flex your logger for your needs.

Efficiency. log.New is optimized.

EDT

If you use a third-party logger, there is a high chance that it has a lot of stuff that you don't need.

More replies