Urldetector

package module
v0.0.0-...-40316c3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 4 Imported by: 0

README

Urldetector

Install

You can install this tool like this...There may be other ways to do it...

go install github.com/Sigumaa/Urldetector/cmd/Urldetector@latest

Usage

go vet -vettool=`which Urldetector` your_package_name

Example

Assume you are in testdata/src/a of this repository.

Code
package a

type Url string

type T struct {
	Url string
}

func f() {
	var Url string
	print(Url)
}
Command
go vet -vettool=`which Urldetector` a
Output
a.go:3:6: Url should be URL
a.go:6:2: Url should be URL
a.go:10:6: Url should be URL
a.go:11:8: Url should be URL

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "Urldetector",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer is an analysis analyzer that finds identifiers containing 'Url'.

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