Replies: 1 comment 1 reply
-
Sure! This sounds like a good idea. 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since
CollectionSpec
andCollection
usemap[string]*Obj
it can be less convenient than loading into struct objects as there are no bpf2go generatedstring
s for easy access.Generating
const
strings for all map, variable and program names could make it a bit nicer to work with.Adding the following to
output.tpl
:If we have an identifier
Foo
and a mapsome_map
one could now do:spec.Maps[pkgname.FooMapNameSomeMap]
andcollection.Maps[pkgname.FooMapNameSomeMap]
while knowing that if the map name changes we'll get a compile time error.Any interest in this?
Beta Was this translation helpful? Give feedback.
All reactions