mcuadros / go-syslog

Syslog server library for go.
http://godoc.org/gopkg.in/mcuadros/go-syslog.v2
MIT License
523 stars 143 forks source link

added PID parsing to RFC3164 parser #53

Open guss77 opened 6 years ago

guss77 commented 6 years ago

Fixes issue #52.

I'm using a string for the PID as I expect it will just be used to build a string again down the line (also, I'm a go newbie and have no idea how to do atoi() in go). Also, the default value for a missing PID is the empty string, like a missing tag - that made more sense to me than using 0.