lint

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package lint contains helpers for linting and static analysis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPackageNames

func FindPackageNames(file *ast.File) map[string]string

FindPackageNames returns all the imported packages mapped to their name in the file.

func IsString

func IsString(pass *analysis.Pass, lit ast.Expr) bool

IsString checks if the underlying type of the literal is string.

func Render

func Render(fset *token.FileSet, x interface{}) string

Render renders the the expression.

func RenderList

func RenderList(fset *token.FileSet, list []ast.Expr) string

RenderList renders the list of expressions.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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