noctor

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 3 Imported by: 1

README

noctor

pkg.go.dev

noctor finds unnecessary constructor like functions.

package a

type T struct {
	N int
	S string
}

func NewT1(n int, s string) *T { // want "unnecessary constructor like function"
	return &T{
		N: n,
		S: s,
	}
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "noctor",
	Doc:  doc,
	Run:  run,
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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