Hacker GitHub

← All repos

golang/net

View on GitHub ↗ ★ 3,045 Go

[mirror] Go supplementary network libraries

4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2016-05-01 · latest 2018-04-10

Mentions per year 4 mentions · busiest year 2018 (2)
20082026
  1. HTTP2 is all about "tcp-inside-tcp" states. https://github.com/golang/net/blob/master/http2/http2.go#L81 Wherever possible, they do the sensible thing - just goroutines for each flow, piped into from the muxed frame parser via channels,…
  2. …for letting threaded code interact with them. We can e.g. see those in Go's HTTP/2 implementation ( https://github.com/golang/net/blob/master/http2/server.go ). In this thing the serve() method basically is a giant state-machine that runs…
  3. html.Parse takes a io.Reader https://github.com/golang/net/blob/master/html/parse.go#L201... an http Response.Body is a io.ReadCloser so you can pass it directly with `html.Parse(response.Body)` But don't forget to defer io.Close the body.
    comment by zalmoxes · 2017-02-10 · in Monitor web page changes with Go
  4. …- A router like [Gin]( https://github.com/gin-gonic/gin ) - A [XSRF token generator and validator]( https://github.com/golang/net/blob/master/xsrftoken/xsrf.go ) - An ORM like [Gorm]( https://github.com/jinzhu/gorm ) or [XORM](…
    comment by andreynering · 2016-05-01 · in Go best practices, six years in