Import howett.net/plist by its correct name

Also bumping the version to one with a go.mod.
This commit is contained in:
Filippo Valsorda
2019-06-02 12:55:44 +01:00
parent e9f8fbcdf4
commit 72ec55f07f
29 changed files with 22 additions and 6 deletions

50
vendor/howett.net/plist/must.go generated vendored Normal file
View File

@@ -0,0 +1,50 @@
package plist
import (
"io"
"strconv"
)
type mustWriter struct {
io.Writer
}
func (w mustWriter) Write(p []byte) (int, error) {
n, err := w.Writer.Write(p)
if err != nil {
panic(err)
}
return n, nil
}
func mustParseInt(str string, base, bits int) int64 {
i, err := strconv.ParseInt(str, base, bits)
if err != nil {
panic(err)
}
return i
}
func mustParseUint(str string, base, bits int) uint64 {
i, err := strconv.ParseUint(str, base, bits)
if err != nil {
panic(err)
}
return i
}
func mustParseFloat(str string, bits int) float64 {
i, err := strconv.ParseFloat(str, bits)
if err != nil {
panic(err)
}
return i
}
func mustParseBool(str string) bool {
i, err := strconv.ParseBool(str)
if err != nil {
panic(err)
}
return i
}