7// minInt64 '-9223372036854775808' is the smallest representable number in int64
8const minInt64 = `9223372036854775808`
10// About 2x faster then strconv.ParseInt because it only supports base 10, which is enough for JSON
11func parseInt(bytes []byte) (v int64, ok bool, overflow bool) {
13 return 0, false, false
23 for _, c := range bytes {
24 if c >= '0' && c <= '9' {
25 b = (10 * v) + int64(c-'0')
27 return 0, false, false
29 if overflow = (b < v); overflow {
36 if neg && bio.Equal(bytes, []byte(minInt64)) {
43 return -v, true, false
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list