zhangqian
2023-12-19 c688f083caf965cd13f640098ad204d8fd8c9e69
constvar/const.go
@@ -20,6 +20,18 @@
   PlcStartAddressTypeTotalNumberWrite PlcStartAddressType = 3
)
type EndianType string
const (
   EndianTypeBig    EndianType = "big"
   EndianTypeLittle EndianType = "little"
   EndianTypeMix    EndianType = "mix"
)
func (t EndianType) Valid() bool {
   return t == EndianTypeBig || t == EndianTypeLittle || t == EndianTypeMix
}
type PlcStartAddressValueType string
const (