I avoided making any breaking changes to the NewPapertrailHook method and instead just added NewPapertrailTCPHook.
Note that since the final parameter in tls.Dial is set to nil, this connection should use the default root set of the current operating system. If you'd like to provide your own Root PEM, you can use this example provided by Google: https://golang.org/pkg/crypto/tls/#example_Dial
I avoided making any breaking changes to the NewPapertrailHook method and instead just added NewPapertrailTCPHook.
Note that since the final parameter in tls.Dial is set to
nil
, this connection should use the default root set of the current operating system. If you'd like to provide your own Root PEM, you can use this example provided by Google: https://golang.org/pkg/crypto/tls/#example_Dial