add plan parser

This commit is contained in:
zhiqiang feng
2021-01-04 15:33:33 +08:00
parent 38e9dc5f03
commit 8ae9b6f1e3
+16
View File
@@ -0,0 +1,16 @@
package parser
import "strings"
const (
TypePLN = "PLN"
)
func isPln(telegram Telegram) bool {
for _, value := range telegram.Fields {
if strings.HasPrefix(value, TypePLN) {
return true
}
}
return false
}