helpers

package
v0.0.0-...-bf59aaa Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

helpers contains utility functions that are used by the analysis package. The helpers are used to extract data from the types, and provide common functionality that is used by multiple linters.

The available helpers are:

  • [extractjsontags]: Extracts JSON tags from struct fields and returns the information in a structured format.
  • [markers]: Extracts marker information from types and returns the information in a structured format.

Helpers should expose an *analysis.Analyzer as a globabl variable. Other linters will use the `Requires` configuration to ensure that the helper is run before the linter. The linter `Requires` relies on matching pointers to Analyzers, and therefore the helper cannot be dynamically created.

Directories

Path Synopsis
extractjsontags is a helper package that extracts JSON tags from a struct field.
extractjsontags is a helper package that extracts JSON tags from a struct field.
markers is a helper used to extract marker information from types.
markers is a helper used to extract marker information from types.

Jump to

Keyboard shortcuts

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