Back to godoc.org
golang.org/x/tools / internal / lsp / analysis / simplifyslice

Package simplifyslice

v0.0.0-...-90696cc
Latest Go to latest

The latest major version is .

Published: Aug 6, 2020 | License: BSD-3-Clause | Module: golang.org/x/tools

Overview

Package simplifyslice defines an Analyzer that simplifies slice statements. https://github.com/golang/go/blob/master/src/cmd/gofmt/simplify.go https://golang.org/cmd/gofmt/#hdr-The_simplify_command

Index

Constants

const Doc = "" /* 168 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
	Name:     "simplifyslice",
	Doc:      Doc,
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier