whosonfirst / go-whosonfirst-index

Go package for indexing Who's On First documents
BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

Figure out interface/model for stats #7

Open straup opened 6 years ago

straup commented 6 years ago

Some generic mechanism to track and record things processed, things skipped, failures etc.

straup commented 6 years ago

Maybe stick it ("it" ?) in the ctx object passed to every callback? Would that work? I can't remember if you can pass complex/custom thingies around but that sort of seems like the point of the context package...