Skip to content

Commit d4127f9

Browse files
feat: update flag description
1 parent 7df9365 commit d4127f9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Flags:
2626
-cpuprofile string
2727
write CPU profile to this file
2828
-crypto-hash
29-
suggest the use of crypto.Hash
29+
suggest the use of crypto.Hash.String()
3030
-debug string
3131
debug flags, any subset of "fpstv"
3232
-fix
@@ -48,17 +48,17 @@ Flags:
4848
-source
4949
no effect (deprecated)
5050
-sql-isolation-level
51-
suggest the use of sql.LevelXX
51+
suggest the use of sql.LevelXX.String()
5252
-tags string
5353
no effect (deprecated)
5454
-test
5555
indicates whether test files should be analyzed, too (default true)
5656
-time-layout
5757
suggest the use of time.Layout
5858
-time-month
59-
suggest the use of time.Month
59+
suggest the use of time.Month.String()
6060
-time-weekday
61-
suggest the use of time.Weekday
61+
suggest the use of time.Weekday.String()
6262
-trace string
6363
write trace log to this file
6464
-v no effect (deprecated)

pkg/analyzer/analyzer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ func flags() flag.FlagSet {
4040
flags := flag.NewFlagSet("", flag.ExitOnError)
4141
flags.Bool(HTTPMethodFlag, true, "suggest the use of http.MethodXX")
4242
flags.Bool(HTTPStatusCodeFlag, true, "suggest the use of http.StatusXX")
43-
flags.Bool(TimeWeekdayFlag, false, "suggest the use of time.Weekday")
44-
flags.Bool(TimeMonthFlag, false, "suggest the use of time.Month")
43+
flags.Bool(TimeWeekdayFlag, false, "suggest the use of time.Weekday.String()")
44+
flags.Bool(TimeMonthFlag, false, "suggest the use of time.Month.String()")
4545
flags.Bool(TimeLayoutFlag, false, "suggest the use of time.Layout")
46-
flags.Bool(CryptoHashFlag, false, "suggest the use of crypto.Hash")
46+
flags.Bool(CryptoHashFlag, false, "suggest the use of crypto.Hash.String()")
4747
flags.Bool(RPCDefaultPathFlag, false, "suggest the use of rpc.DefaultXXPath")
4848
flags.Bool(OSDevNullFlag, false, "suggest the use of os.DevNull")
49-
flags.Bool(SQLIsolationLevelFlag, false, "suggest the use of sql.LevelXX")
49+
flags.Bool(SQLIsolationLevelFlag, false, "suggest the use of sql.LevelXX.String()")
5050
return *flags
5151
}
5252

0 commit comments

Comments
 (0)