Make pcap-broker go installable (#8)
This mainly adds a main.go file in the project root so it's easier to
install pcap-broker using `go install`:
$ go install github.com/fox-it/pcap-broker@latest
Or install the main branch:
$ go install github.com/fox-it/pcap-broker@main
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package main
|
||||
package pcap_broker
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -34,7 +34,7 @@ var (
|
||||
json = flag.Bool("json", false, "enable json logging")
|
||||
)
|
||||
|
||||
func main() {
|
||||
func Main() {
|
||||
flag.Parse()
|
||||
|
||||
if !*json {
|
||||
|
||||
Reference in New Issue
Block a user