mirror of
https://github.com/andwati/dns-resolver.git
synced 2026-11-02 01:02:17 +00:00
created project structure
This commit is contained in:
@@ -0,0 +1 @@
|
||||
package dns
|
||||
@@ -0,0 +1 @@
|
||||
package dns
|
||||
@@ -0,0 +1 @@
|
||||
package dns
|
||||
@@ -0,0 +1 @@
|
||||
package dns
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
package network
|
||||
@@ -0,0 +1 @@
|
||||
package network
|
||||
Reference in New Issue
Block a user