Restructure to library

This commit is contained in:
2026-05-19 10:46:23 +02:00
parent e9a12e014e
commit f4fcb46168
3 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ func (f *Frame) Serialize() []byte {
// Ignore reserved byte 7
copy(buf[8:18], f.CallFrom[:])
copy(buf[18:28], f.CallTo[:])
binary.BigEndian.PutUint32(buf[28:32], f.DataLen)
binary.LittleEndian.PutUint32(buf[28:32], f.DataLen)
copy(buf[32:36], f.User[:])
return buf

1
agwpe_test.go Normal file
View File

@@ -0,0 +1 @@
agwpe_test.go

2
go.mod
View File

@@ -1,3 +1,3 @@
module go-agw/agw
module go-agwpe/agwpe
go 1.24.5