openfileflag

package
v0.0.0-...-d38ec11 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "openFileFlag",
	Doc:  "prevents forgetting to specify O_TRUNC / O_APPEND / O_EXCL flags",
	Run:  run,
}

Functions

This section is empty.

Types

type FileFlags

type FileFlags struct {
	Flags  []*ast.SelectorExpr
	IsPure bool
}

func FileFlagsOf

func FileFlagsOf(expr ast.Expr) FileFlags

func (FileFlags) Has

func (f FileFlags) Has(flag string) bool

Jump to

Keyboard shortcuts

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