forgotten spaces
This commit is contained in:
parent
41ee4dfc91
commit
24dad18c81
|
@ -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))
|
||||
}},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user