proto_msg_map

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNameRepeat = "ErrNameRepeat : %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DictConst

type DictConst struct {
	Name string
	Id   int
}

type DictConstList

type DictConstList []*DictConst

func Dict

func Dict(in string) (list DictConstList, const2Name map[string]string, err error)

func (DictConstList) Len

func (this DictConstList) Len() int

func (DictConstList) Less

func (this DictConstList) Less(i, j int) bool

func (DictConstList) Swap

func (this DictConstList) Swap(i, j int)

type ProtoMsgMap

type ProtoMsgMap struct {
	Pkg    string
	MsgMap map[string]bool //key is message name, bool is can use(if start with `//` can't use.)
}

func GetProtoMsgMap

func GetProtoMsgMap(path string) (m *ProtoMsgMap, err error)

func NewProtoMsgMap

func NewProtoMsgMap() *ProtoMsgMap

Jump to

Keyboard shortcuts

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