Possibly again not exactly what you're looking for, but I still like Alex Edwards' "Let's Go" and "Let's Go Further" as examples of building up realistic backend servers with the different functions you mention (routing, auth, db etc), for at least modest scale. The former is forms-oriented and superficially but you can easily intuit how to extend it to JSON apps, partly because it does emphasise general techniques and structures so you can build your own. The second book starts with apis. I found the books clear and useful. I think the db is MySQL in the first book and PostgresSQL in the second. From 1.22, one might consider using net/http.ServeMux as the router. One advantage compared to just looking at code is that, being a book and tutorial, it discusses alternatives at every stage.
Jason Phillips excellent suggestion of the 4 Go infrastructure sites is one I'd completely forgotten about! On Tuesday 23 January 2024 at 14:10:30 UTC george looshch wrote: > hi Steven, > > thanks for the link! As was noted previously, i did a terrible job at > expressing my question initially; what i really meant was examples of > real-world web server with routing, authentication, DB, etc. > > On Tuesday, January 23, 2024 at 1:56:04 PM UTC Steven Hartland wrote: > >> It's high level, but there's some good stuff mentioned in >> https://github.com/avelino/awesome-go >> >> On Mon, 22 Jan 2024 at 15:23, george looshch <george...@gmail.com> wrote: >> >>> hi Jason, >>> >>> thanks a million for pointing out the vagueness of my question! English >>> isn’t my mother tongue so now i see where you’re coming from >>> >>> what i meant was examples of real-world web server with routing, >>> authentication, DB, etc. >>> >>> curated lists have libraries and frameworks, what i’m looking for is >>> examples of usages these libraries and frameworks in production. Search on >>> github didn’t yield any good results, unfortunately >>> >>> On Monday, January 22, 2024 at 2:13:17 PM UTC Jason E. Aten wrote: >>> >>>> This question is too vague. >>>> >>>> You are likely to get more helpful answers if you specify what kind of >>>> "backend" you are looking for. As it is, we can only guess. >>>> >>>> Do you want backends that are web servers? (see the standard library >>>> net/http or the caddy web server) Is it a backend for iOS iPhone Apps? >>>> For >>>> Android Apps? That respond to a specific kind of RPC such as gRPC? That >>>> simply access a database?... A relational database? A non-relational >>>> database (graph?, vector?, full-text search?) >>>> >>>> Pocketbase is a backend mentioned recently on hackernews, that is >>>> written in Go and seems to do alot. Perhaps it is similar to firebase, >>>> just going by the name. I have not used it myself. I cannot say whether >>>> it >>>> is a "good example" or not, because I've not used it, and similarly this >>>> is >>>> too vague a criteria (good at what?) >>>> >>>> https://github.com/pocketbase/pocketbase >>>> >>>> Generally, go over to github and search for the kind of backend you >>>> want, and select those projects that are written in Go on the left side >>>> filter click-boxes. You could also look at the curated lists of Go >>>> libraries such as https://awesome-go.com/ >>>> >>>> On Sunday, January 21, 2024 at 4:57:42 PM UTC+1 george looshch wrote: >>>> >>>> hi! >>>> can i please ask if someone knows good examples of back ends written in >>>> Go? If not good, just production code would be great as well! >>>> thanks in advance and have a great rest of the weekend! >>>> >>>> -- >>> >> You received this message because you are subscribed to the Google Groups >>> "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/golang-nuts/bcb429bb-4cfb-4421-be4e-b1ffbcd5e228n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/golang-nuts/bcb429bb-4cfb-4421-be4e-b1ffbcd5e228n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0839ffb9-5737-40e8-ad01-81c485724658n%40googlegroups.com.