namedtypes

package module
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 9 Imported by: 0

README

Documentation

Overview

Package namedtypes provides a go/analysis analyzer enforcing the gomatic Go standard that function parameters use named domain types rather than bare primitives. v1 covers non-method function declarations whose parameter type is a bare predeclared primitive identifier; methods and composite types are deferred.

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:     "namedtypes",
	Doc:      "reports function parameters that use a bare primitive type instead of a named domain type",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Analyzer reports function parameters declared with a bare primitive type.

View Source
var Registration = goyze.Registration{
	Name:       "namedtypes",
	Categories: []goyze.Category{"types"},
	URL:        "https://docs.gomatic.dev/yze/namedtypes",
	Analyzer:   Analyzer,
}

Registration declares this analyzer to the yze framework.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
yze-go-namedtypes command
Command yze-go-namedtypes runs the namedtypes analyzer as a standalone go/analysis checker (text, -json, and -fix output, and usable as a `go vet -vettool`).
Command yze-go-namedtypes runs the namedtypes analyzer as a standalone go/analysis checker (text, -json, and -fix output, and usable as a `go vet -vettool`).

Jump to

Keyboard shortcuts

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