====== Заметки Go ====== ===== Сеть ===== * https://godoc.org/github.com/google/gopacket/ * https://godoc.org/github.com/google/gopacket/layers * // RegisterUDPPortLayerType creates a new mapping between a UDPPort // and an underlaying LayerType. func RegisterUDPPortLayerType(port UDPPort, layerType gopacket.LayerType) { udpPortLayerType[port] = layerType } * [[https://www.devdungeon.com/content/packet-capture-injection-and-analysis-gopacket|Packet Capture, Injection, and Analysis with Gopacket]] * parser := gopacket.NewDecodingLayerParser( layers.LayerTypeEthernet, ðLayer, &ipLayer, &tcpLayer, ) foundLayerTypes := []gopacket.LayerType{} err := parser.DecodeLayers(packet.Data(), &foundLayerTypes) if err != nil { fmt.Println("Trouble decoding layers: ", err) } ===== Mobile ===== * https://github.com/golang/go/wiki/Mobile ===== GUI ===== * https://habr.com/ru/post/420035/ ===== PDF ===== * https://github.com/jung-kurt/gofpdf * https://stackoverflow.com/questions/35308271/golang-create-pdf-with-cyrillic