[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

how to write web apps in go

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 17
Thread images: 2

File: golang.png (14KB, 400x300px) Image search: [Google]
golang.png
14KB, 400x300px
how to write web apps in go
>>
>>59871937
https://www.youtube.com/user/toddmcleod
>>
>>59871970
that guy doesn't know what he's doing.

his videos are shit.
>>
>>59871977
Then figure it out on your own.
Use Revel, look at the examples and read the docs.
>>
>>59871937
read specs.
>>
>>59871937
rtfm
>>
Go is a systems programming language. You wouldn't write web apps in c++, why would you do it in go or rust?
>>
>>59872371
Go comes with
- TLS
- HTTP1/2
- JSON
- URL parser
- Gzip, Deflate
- green threads

Yeah, don't know why people would want to write a web app in that programming language
>>
>>59872371
>golang
>systems programming language
>>
File: go.png (2KB, 232x67px) Image search: [Google]
go.png
2KB, 232x67px
package main

import (
"io"
"log"
"net/http"
)

func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Hello, World!")
})
log.Println("Listening on 0.0.0.0:8080")
log.Fatalln(http.ListenAndServe(":8080", nil))
}
>>
>>59874146
Fuck, that is easy
>>
Write it in lisp instead
>>
>>59874146
localhost is 127.0.0.1 dumbass
>>
>>59875360
0.0.0.0 is all addresses, retard
>>
Avoiding frameworks is the way to Go. Go is a modern language that can handle such web related stuff out of the box. You will not find something well maintained with lots of contributors and a safe future like laravel, flask, django, expressjs etc. I should also warn you that if you have no experience it would be better to start with something else the fact that Go is the new kid on the block means that finding books, tutorials or online courses that are actually decent is almost impossible, to make things worse the idiots at Google chose an ungoogable name for it. If you can cope with all the above you will be able to harness the power, freedom and speed of Go.
>>
>>59875938
I figured most people refer to it online as golang, which makes it easier to look up.
>>
>>59875938
>Go is a modern language that can handle such web related stuff out of the box.
>You will not find something well maintained with lots of contributors and a safe future
this is a contradiction if net/http is all you need (and net/http is well maintained with lots of contributors. it isn't going anywhere)

>finding books, tutorials or online courses that are actually decent is almost impossible
godoc is pretty good

other resources: blog.golang.org, go-search.org, golangweekly.com, golangnews.com
https://dave.cheney.net/resources-for-new-go-programmers
(as an aside, dave cheney a bit of a know-it-all and regularly gets shit on by the Go team on twitter)

> to make things worse the idiots at Google chose an ungoogable name for it.
"golang" is the googlable term, there are lots of good results these days
Thread posts: 17
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.