Errorf(nil, "%s: error reading package data: %v", lib.File, err)
                return
        }
-       firstEOL := bytes.Index(pkgDefBytes, []byte("\n"))
+       firstEOL := bytes.IndexByte(pkgDefBytes, '\n')
        if firstEOL < 0 {
                Errorf(nil, "cannot parse package data of %s for hash generation, no newline found", lib.File)
                return
 
        o.all = append(o.all, data...)
 
        for {
-               i := bytes.Index(o.line, []byte{'\n'})
+               i := bytes.IndexByte(o.line, '\n')
                if i < 0 {
                        break
                }
 
 }
 
 func (u *unmarshalerText) UnmarshalText(b []byte) error {
-       pos := bytes.Index(b, []byte(":"))
+       pos := bytes.IndexByte(b, ':')
        if pos == -1 {
                return errors.New("missing separator")
        }
 
 // bytes) is also returned and this will always be smaller than the original
 // argument.
 func getLine(data []byte) (line, rest []byte) {
-       i := bytes.Index(data, []byte{'\n'})
+       i := bytes.IndexByte(data, '\n')
        var j int
        if i < 0 {
                i = len(data)
                }
                line, next := getLine(rest)
 
-               i := bytes.Index(line, []byte{':'})
+               i := bytes.IndexByte(line, ':')
                if i == -1 {
                        break
                }