cmd

package
v0.0.0-...-567932c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMCC   byte = iota + 0x01 //中国移动
	CUCC                      //中国联通
	CTCC                      //中国电信
	CTCC_v                    //电信虚拟运营商
	CUCC_v                    //联通虚拟运营商
	CMCC_v                    //移动虚拟运营商
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "telattr",
	Short: "Chinese telephone attribution",
	Long:  `Chinese telephone attribution processor and query command`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ByteSlice

type ByteSlice []byte

func (ByteSlice) Len

func (p ByteSlice) Len() int

func (ByteSlice) Less

func (p ByteSlice) Less(i, j int) bool

func (ByteSlice) Swap

func (p ByteSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL