stringdetector

package module
v0.0.0-...-fed502d Latest Latest
Warning

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

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

README

stringdetector

Install

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

Example

package main

type A struct {
	Url string
	Id  string
	Utc string
}

func main() {
	var Url string
	print(Url)

	var Id string
	print(Id)

	var Utc string
	print(Utc)
}
$ go vet -vettool=`which stringdetector` -stringdetector.flag="Url,Id,Utc" main
.\main.go:4:2: Url is detected
.\main.go:5:2: Id is detected
.\main.go:6:2: Utc is detected
.\main.go:10:6: Url is detected
.\main.go:11:8: Url is detected
.\main.go:13:6: Id is detected
.\main.go:14:8: Id is detected
.\main.go:16:6: Utc is detected
.\main.go:17:8: Utc is detected

Documentation

Index

Constants

This section is empty.

Variables

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

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