-
Notifications
You must be signed in to change notification settings - Fork 16
/
go_fix.cli.txt
37 lines (25 loc) · 2.72 KB
/
go_fix.cli.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
GO_FIX
VERSION ==> #See Go language
RELATED DOCUMENTATION ==> #See Go language
/=+===============================+=\
/ : : \
)==: FIX :==(
\ :_______________________________: /
\=+===============================+=/
go tool fix [DIR|FILE...] #Migrate source files from old Go version to latest Go version
#Def PATH: stdin, and write to stdout
#Prints to stderr on any migration
-r RULE,... #Def: all RULEs
-force RULE,... #Force those RULEs to be applied
-diff #Show diff instead
go fix IMPORT_PATHS #Higher-level command above go tool fix
AVAILABLE RULES ==> #
context #import "golang.org/x/net/context" -> import "context"
gotypes #import "golang.org/x/tools/go/{exact,types}" -> import "go/{constant,types}"
netipv6zone #In import "net", fix IPAddr|UDPAddr|TCPAddr STRUCT old definition
printerconfig #In import "printer", fix Config STRUCT old definition
cftype #Fixes initializers and casts of C.*Ref and JNI types (Go <-> C|Java)
jni #Fixes initializers of JNI's jobject and subtypes (Go <-> C|Java)
egl #Fixes initializers of EGLDisplay (OpenGL)