github.com/searKing/golang/go@v1.2.117/format/radix/radix.go (about) 1 // Copyright 2020 The searKing Author. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package radix 6 7 //go:generate go-enum -type Radix 8 type Radix int // 进制 9 10 const ( 11 Binary Radix = iota // 二进制 12 Octonary // 八进制 13 Decimal // 十进制 14 Hexadecimal // 十六进制 15 )