From 24dad18c8146928f3260def730d93761fc06df82 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sun, 26 Apr 2020 23:46:55 +0200 Subject: [PATCH] forgotten spaces --- laymanshex.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/laymanshex.go b/laymanshex.go index d44d5fc..8bc77d4 100644 --- a/laymanshex.go +++ b/laymanshex.go @@ -45,7 +45,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseInt(s, 10, 8) - optPanic("conversion of "+s+"to int8 failed", err) + optPanic("conversion of "+s+" to int8 failed", err) binaryWrite(w, bo, int8(i)) }}, "uint8": handling{1, @@ -56,7 +56,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseUint(s, 10, 8) - optPanic("conversion of "+s+"to uint8 failed", err) + optPanic("conversion of "+s+" to uint8 failed", err) binaryWrite(w, bo, uint8(i)) }}, "int16": handling{2, @@ -67,7 +67,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseInt(s, 10, 16) - optPanic("conversion of "+s+"to int16 failed", err) + optPanic("conversion of "+s+" to int16 failed", err) binaryWrite(w, bo, int16(i)) }}, "uint16": handling{2, @@ -78,7 +78,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseUint(s, 10, 16) - optPanic("conversion of "+s+"to uint16 failed", err) + optPanic("conversion of "+s+" to uint16 failed", err) binaryWrite(w, bo, uint16(i)) }}, "int32": handling{4, @@ -89,7 +89,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseInt(s, 10, 32) - optPanic("conversion of "+s+"to int32 failed", err) + optPanic("conversion of "+s+" to int32 failed", err) binaryWrite(w, bo, int32(i)) }}, "uint32": handling{4, @@ -100,7 +100,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseUint(s, 10, 32) - optPanic("conversion of "+s+"to uint32 failed", err) + optPanic("conversion of "+s+" to uint32 failed", err) binaryWrite(w, bo, uint32(i)) }}, "int64": handling{8, @@ -111,7 +111,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseInt(s, 10, 64) - optPanic("conversion of "+s+"to int64 failed", err) + optPanic("conversion of "+s+" to int64 failed", err) binaryWrite(w, bo, i) }}, "uint64": handling{8, @@ -122,7 +122,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { i, err := strconv.ParseUint(s, 10, 64) - optPanic("conversion of "+s+"to uint64 failed", err) + optPanic("conversion of "+s+" to uint64 failed", err) binaryWrite(w, bo, i) }}, "float32": handling{4, @@ -133,7 +133,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { f, err := strconv.ParseFloat(s, 32) - optPanic("conversion of "+s+"to float32 failed", err) + optPanic("conversion of "+s+" to float32 failed", err) binaryWrite(w, bo, float32(f)) }}, "float64": handling{8, @@ -144,7 +144,7 @@ var handlings = map[string]handling{ }, func(w io.Writer, bo binary.ByteOrder, s string) { f, err := strconv.ParseFloat(s, 64) - optPanic("conversion of "+s+"to float64 failed", err) + optPanic("conversion of "+s+" to float64 failed", err) binaryWrite(w, bo, float64(f)) }}, }