land/vendor/github.com/Xe/ln/opname.go

16 lines
202 B
Go
Raw Normal View History

2018-06-17 23:39:04 +00:00
package ln
import (
"context"
"github.com/Xe/ln/opname"
)
func opnameInEvents(ctx context.Context, e Event) bool {
if op, ok := opname.Get(ctx); ok {
e.Data["operation"] = op
}
return true
}