17 lines
219 B
Go
17 lines
219 B
Go
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
|
|
}
|