aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/main.go b/main.go
index 7978414..d1053af 100644
--- a/main.go
+++ b/main.go
@@ -5,11 +5,23 @@ import (
5 "io/ioutil" 5 "io/ioutil"
6 "log" 6 "log"
7 "os" 7 "os"
8 "parser/messages" 8
9 "parser/utils" 9 "github.com/bisaxa/demoparser/messages"
10 "github.com/bisaxa/demoparser/utils"
10) 11)
11 12
12func main() { 13func main() {
14 /*var arr []byte = make([]byte, 4)
15 arr[0] = 200
16 arr[1] = 10
17 fmt.Printf("%b\n", arr[0])
18 for _, s := range arr {
19 fmt.Printf("Value: %d - Binary : %b\n", s, s)
20 }
21 state := utils.ReadBitsFromReversedByteArray1(arr)
22 value := utils.ReadBitsFromReversedByteArray32(arr, 9)
23 fmt.Println(state)
24 fmt.Printf("Value: %d - Binary : %b\n", value, value)*/
13 if len(os.Args) != 2 { 25 if len(os.Args) != 2 {
14 log.Fatal("Specify file in command line arguments.") 26 log.Fatal("Specify file in command line arguments.")
15 } 27 }