{"id":50481,"library":"google-gopacket","title":"GoPacket","description":"Package gopacket provides packet decoding for the Go language.","status":"active","version":"1.1.19","language":"go","source_language":null,"source_url":"https://github.com/google/gopacket","tags":["packet","decoding","network","pcap","capture"],"install":[{"cmd":"go get github.com/google/gopacket","lang":"bash","label":"Install github.com/google/gopacket"}],"dependencies":[],"imports":[{"symbol":"gopacket","correct":"github.com/google/gopacket"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/google/gopacket\"\n\t\"github.com/google/gopacket/pcap\"\n)\n\nfunc main() {\n\thandle, err := pcap.OpenLive(\"eth0\", 1600, true, pcap.BlockForever)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer handle.Close()\n\tpacketSource := gopacket.NewPacketSource(handle, handle.LinkType())\n\tfor packet := range packetSource.Packets() {\n\t\tfmt.Println(packet)\n\t}\n}","lang":"go","description":"Captures and decodes packets from a network interface."},"warnings":[],"env_vars":null,"search_vec":"'captur':15 'decod':6,12 'go':9 'gopacket':1,3 'languag':10 'network':13 'packag':2 'packet':5,11 'pcap':14 'provid':4","created_at":"2026-06-15T04:55:11.115501+00:00","updated_at":"2026-06-15T04:55:11.115501+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/google/gopacket","github":"https://github.com/google/gopacket","docs":"https://pkg.go.dev/github.com/google/gopacket#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}