canon

command
v0.0.0-...-031efb1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

README

canon

canon is a tool to add canonical import paths to Go packages.

For example, given a file located at $GOPATH/example.com/foo/foo.go with the following contents:

// Package foo docs here.
package foo

canon will update this file as:

// Package foo docs here.
package foo // import "example.com/foo"

canon will only modify a single go source file per package. If there are multiple source files for the package, canon will try to use the file that declares the package-level documentation. If there is no package documentation, the behavior of selecting a file is undefined.

Documentation

Overview

The canon command adds canonical import paths to Go packages.

Jump to

Keyboard shortcuts

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