Clean up and PR feedback

This commit is contained in:
Kevin Parsons
2019-01-03 13:08:23 -08:00
parent fac5ca0c3a
commit b87cea3696
8 changed files with 168 additions and 177 deletions
+5
View File
@@ -5,6 +5,11 @@ package etw
// keyword.
type EventOpt func(*EventDescriptor, *uint32)
// WithEventOpts returns the variadic arguments as a single slice.
func WithEventOpts(opts ...EventOpt) []EventOpt {
return opts
}
// WithLevel specifies the level of the event to be written.
func WithLevel(level Level) EventOpt {
return func(descriptor *EventDescriptor, tags *uint32) {