created project structure

This commit is contained in:
2024-12-19 17:58:14 +03:00
parent 85da50dbc8
commit 4e8bd6caa7
7 changed files with 7 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
package dns
+1
View File
@@ -0,0 +1 @@
package dns
+1
View File
@@ -0,0 +1 @@
package dns
+1
View File
@@ -0,0 +1 @@
package dns
+15
View File
@@ -0,0 +1,15 @@
package dns
import "encoding/binary"
func uint16ToBytes(val uint16) []byte {
buf := make([]byte, 2)
binary.BigEndian.PutUint16(buf, val)
return buf
}
func uint32ToBytes(val uint32) []byte {
buf := make([]byte, 4)
binary.BigEndian.PutUint32(buf, val)
return buf
}
+1
View File
@@ -0,0 +1 @@
package network
+1
View File
@@ -0,0 +1 @@
package network