@@ -23,8 +23,8 @@ import (
23
23
"strings"
24
24
)
25
25
26
- // pkgPath is the importable path for package model
27
- const pkgPath = "go.uber.org/mock/mockgen/model"
26
+ // _pkgPath is the importable path for package model
27
+ const _pkgPath = "go.uber.org/mock/mockgen/model"
28
28
29
29
// Package is a Go package. It may be a subset.
30
30
type Package struct {
@@ -149,12 +149,12 @@ type Type interface {
149
149
func init () {
150
150
// Call gob.RegisterName with pkgPath as prefix to avoid conflicting with
151
151
// github.com/golang/mock/mockgen/model 's registration.
152
- gob .RegisterName (pkgPath + ".ArrayType" , & ArrayType {})
153
- gob .RegisterName (pkgPath + ".ChanType" , & ChanType {})
154
- gob .RegisterName (pkgPath + ".FuncType" , & FuncType {})
155
- gob .RegisterName (pkgPath + ".MapType" , & MapType {})
156
- gob .RegisterName (pkgPath + ".NamedType" , & NamedType {})
157
- gob .RegisterName (pkgPath + ".PointerType" , & PointerType {})
152
+ gob .RegisterName (_pkgPath + ".ArrayType" , & ArrayType {})
153
+ gob .RegisterName (_pkgPath + ".ChanType" , & ChanType {})
154
+ gob .RegisterName (_pkgPath + ".FuncType" , & FuncType {})
155
+ gob .RegisterName (_pkgPath + ".MapType" , & MapType {})
156
+ gob .RegisterName (_pkgPath + ".NamedType" , & NamedType {})
157
+ gob .RegisterName (_pkgPath + ".PointerType" , & PointerType {})
158
158
159
159
// Call gob.RegisterName to make sure it has the consistent name registered
160
160
// for both gob decoder and encoder.
@@ -163,7 +163,7 @@ func init() {
163
163
// calling rt.PkgPath() for a name to register. If your project has vendor
164
164
// directory, it is possible that PkgPath will get a path like this:
165
165
// ../../../vendor/go.uber.org/mock/mockgen/model
166
- gob .RegisterName (pkgPath + ".PredeclaredType" , PredeclaredType ("" ))
166
+ gob .RegisterName (_pkgPath + ".PredeclaredType" , PredeclaredType ("" ))
167
167
}
168
168
169
169
// ArrayType is an array or slice type.
0 commit comments