Closed groob closed 7 years ago
I'm a bit skeptical as to the utility of this. It seems easier to me for the user to import one package by the standard means and then have all of the functions available. I wouldn't object to the ColumnSlice
helper, but []osquery.ColumnDefinition
is already in the type signature of the Columns()
function, so I'm not sure that's a big gain either.
This is a demonstration of an idea I had to simplify writing the
Columns()
method for a table plugin.The idea is that the helpers for ColumnDefinition types are moved to a separate package which is safe to import into a table plugin namespace using a
.
import.Example: