debug.go 365 B

12345678910111213
  1. package q
  2. import (
  3. ryboeq "github.com/ryboe/q"
  4. )
  5. func Q(v ...interface{}) {
  6. // TODO(hs): do or do not call ryboeq.Q based on e.g. debug flag,
  7. // runtime (go run vs. build), based on compiled or not. Goal would be
  8. // to not debug in prod builds at all times. Ideally, never leave a leftover
  9. // call to q.Q in the code, so panic if there is?
  10. ryboeq.Q(v...)
  11. }