pkg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hint

type Hint struct {
	Pos               token.Pos
	DeclaredSliceName string
}

Hint stores the information about an occurrence of a slice that could be preallocated.

func Check

func Check(files []*ast.File, simple, includeRangeLoops, includeForLoops bool) []Hint

func (Hint) String

func (h Hint) String() string

func (Hint) StringFromFS

func (h Hint) StringFromFS(f *token.FileSet) string

Jump to

Keyboard shortcuts

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