diff options
Diffstat (limited to 'forged/internal/bare/varint.go')
-rw-r--r-- | forged/internal/bare/varint.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/forged/internal/bare/varint.go b/forged/internal/bare/varint.go deleted file mode 100644 index a185ac8..0000000 --- a/forged/internal/bare/varint.go +++ /dev/null @@ -1,30 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: Copyright (c) 2025 Drew Devault <https://drewdevault.com> - -package bare - -import ( - "reflect" -) - -// Int is a variable-length encoded signed integer. -type Int int64 - -// Uint is a variable-length encoded unsigned integer. -type Uint uint64 - -var ( - intType = reflect.TypeOf(Int(0)) - uintType = reflect.TypeOf(Uint(0)) -) - -func getIntKind(t reflect.Type) reflect.Kind { - switch t { - case intType: - return reflect.Int - case uintType: - return reflect.Uint - default: - return t.Kind() - } -} |