Pure Golang port of py-suricataparser with same functions - parsing and generating Snort/Suricata rules.
go-suricataparser supports Go 1.18 or higher.
go get https://github.com/m-chrome/go-suricataparser@latest
Package is stable. New api may be appeared. Any bugfixes and improvements are welcomed.
Parsing rule from files and strings example here.
Building rule with package functions example here.