wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
772 stars 126 forks source link

Use lowercase "f" for Logger interface functions #77

Closed pteich closed 2 years ago

pteich commented 2 years ago

This is not a real issue but I would suggest to use a lowercase f for your Logger interface function, e.g. Errorf(string, ...interface{}) instead of ErrorF(string, ...interface{})

This way, it is much easier to use existing logger implementations directly as this is the more or less default in the Go landscape (IMHO). In addition, also the Go stdlib functions like Printf() use it this way.

wagslane commented 2 years ago

fixed in 0.10.0