Documentation ¶
Overview ¶
Package tags enables identification of the build tags and capabilities that are compiled into the current program. This package provides only top-level functions that are read-only.
Index ¶
Constants ¶
const ( CapMemoryMapper uint32 = 1 << iota CapBugs CapImplant CapCrypt CapEws CapKey CapProxy CapMultiProxy // += CapProxy CapProcEnum CapRegexp CapLimitLarge CapLimitMedium CapLimitSmall CapRandomType CapMemorySweeper CapFuncmap CapAltLoad CapChunkHeap CapRust // CapLimitStandard is a flagset combo that is recognized as // CapLimitLarge | CapLimitMedium // and should be tested before CapLimitLarge and CapLimitMedium or tested // against it's value. // standard := tags.Enabled & CapLimitStandard == CapLimitStandard CapLimitStandard = CapLimitLarge | CapLimitMedium // CapLimitTiny is a flagset combo that is recognized as // CapLimitLarge | CapLimitMedium | CapLimitSmall // and should be tested before CapLimitLarge, CapLimitMedium and CapLimitSmall // or tested against it's value. // tiny := tags.Enabled & CapLimitTiny == CapLimitTiny CapLimitTiny = CapLimitLarge | CapLimitMedium | CapLimitSmall )
Cap* capability flag constants.
const Enabled = setCapAltLoad | setCapFuncmap | setCapMemorySweeper |
setCapRandomType | setCapLimit | setCapRegexp | setCapProcEnum |
setCapProxy | setCapKey | setCapEws | setCapCrypt | setCapImplant |
setCapBugs | setCapMemoryMapper | setCapChunkHeap
Enabled contains a bitmask combination of all the enabled Capabilities (build tags) enabled currently.
Windows specific flags may exist but only take effect if the device is running Windows.
Variables ¶
This section is empty.
Functions ¶
func Capabilities ¶
func Capabilities() string
Capabilities returns a string version of the 'Enabled' bitmask. Supported capabilities will be listed, seperated by semicolons.
func ParseCapabilities ¶
ParseCapabilities returns a string representation of the numerical capabilities tag value. The provided boolean will determine if Windows specific capabilities are shown. Use false to disable Windows specific capabilities.
Types ¶
This section is empty.