structfilter

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package structfilter holds predicates for excluding structs from analysis: generated files and cache-line-padded structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasCacheLinePad

func HasCacheLinePad(st *types.Struct) bool

HasCacheLinePad reports whether st has a field of type golang.org/x/sys/cpu.CacheLinePad (the false-sharing guard).

func InGeneratedFile

func InGeneratedFile(t common.Target, pos token.Pos) bool

InGeneratedFile reports whether pos falls in one of t's syntax files that carries the standard "// Code generated ... DO NOT EDIT." marker.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL