Skip to content

Commit ec013e8

Browse files
committed
fix: Don't import strings if case-insensitive
1 parent 5ff271c commit ec013e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stringer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ func main() {
121121
g.Printf("\n")
122122
g.Printf("import (\n")
123123
g.Printf("\t\"fmt\"\n")
124-
g.Printf("\t\"strings\"\n")
124+
if !*caseSensitive {
125+
g.Printf("\t\"strings\"\n")
126+
}
125127
if *sql {
126128
g.Printf("\t\"database/sql/driver\"\n")
127129
}

0 commit comments

Comments
 (0)