anycheck

module
v0.0.0-...-896925b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT

README

anycheck

Linter to detect inconsistent usage of interface{} and any in your Go code.

Install

go get -u github.com/dchenz/anycheck/cmd/anycheck

Motivation

In Go 1.18, the introduction of any as a type alias for interface{} allows for interchangeable usage between the two. However, this flexibility can lead to inconsistent coding styles when some parts of the codebase utilize either option.

var a any
var b interface{}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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