Skip to content

Commit f7a68eb

Browse files
committed
cmd: improve package docs
1 parent 6ec8230 commit f7a68eb

File tree

7 files changed

+11
-2
lines changed

7 files changed

+11
-2
lines changed

cmd/gosimple/gosimple.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// gosimple lints the Go source files named on its command line.
1+
// gosimple detects code that could be rewritten in a simpler way.
22
package main // import "honnef.co/go/tools/cmd/gosimple"
33
import (
44
"os"

cmd/keyify/keyify.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// keyify transforms unkeyed struct literals into a keyed ones.
12
package main
23

34
import (

cmd/staticcheck/staticcheck.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// staticcheck statically checks your code for bugs.
1+
// staticcheck detects a myriad of bugs and inefficiencies in your
2+
// code.
23
package main // import "honnef.co/go/tools/cmd/staticcheck"
34

45
import (

cmd/structlayout-optimize/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// structlayout-optimize reorders struct fields to minimize the amount
2+
// of padding.
13
package main
24

35
import (

cmd/structlayout-pretty/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// structlayout-pretty formats the output of structlayout with ASCII
2+
// art.
13
package main
24

35
import (

cmd/structlayout/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// structlayout displays the layout (field sizes and padding) of structs.
12
package main
23

34
import (

cmd/unused/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// unused reports unused identifiers (types, functions, ...) in your
2+
// code.
13
package main // import "honnef.co/go/tools/cmd/unused"
24

35
import (

0 commit comments

Comments
 (0)