feat: Turn into Cobra application, add CLI flag for listen interface

This commit is contained in:
Adrian Rumpold
2024-01-04 19:27:09 +01:00
parent 7d3a40987b
commit d11855bfd0
5 changed files with 348 additions and 272 deletions

11
cmd/util.go Normal file
View File

@@ -0,0 +1,11 @@
package cmd
import (
"encoding/binary"
)
func u32tob(u uint32) []byte {
buf := make([]byte, 4)
binary.BigEndian.PutUint32(buf, u)
return buf
}