Looking for a Go way to extract all consts from a package. This can be at runtime (reflect during startup) or at build time (go generate ...magic...).
My intended usage is to get a slice containing the names of all Actions from package permissions. They are all consts that end in "Action". For motivation: in C I would just list the actions in a separate source file wrapped in a macro ACTION, then include it twice with different definitions of ACTION. It would take 4 lines and they would be readable. SURELY GO CAN DO BETTER!