notes:golang:start

Заметки Go

  •         parser := gopacket.NewDecodingLayerParser(
                layers.LayerTypeEthernet,
                &ethLayer,
                &ipLayer,
                &tcpLayer,
            )
            foundLayerTypes := []gopacket.LayerType{}
    
            err := parser.DecodeLayers(packet.Data(), &foundLayerTypes)
            if err != nil {
                fmt.Println("Trouble decoding layers: ", err)
            }
  • notes/golang/start.txt
  • Последние изменения: 2019/10/22 18:09
  • (внешнее изменение)