Skip to content

Commit

Permalink
interfaces: fixes for goreportcard
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Jan 18, 2016
1 parent c36d88e commit 1cce18e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/interfacer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type {{.InterfaceName}} interface {
{{end}}}
`))

type Vars struct {
type vars struct {
PackageName string
InterfaceName string
Type string
Expand Down Expand Up @@ -74,7 +74,7 @@ func main() {
if err != nil {
die(err)
}
v := &Vars{
v := &vars{
Type: *query,
Deps: i.Deps(),
Interface: i,
Expand Down
2 changes: 1 addition & 1 deletion type.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Type struct {
Name string `json:"name,omitempty"` // type name
Package string `json:"package,omitempty"` // package name the type is defined in; empty for builtin
ImportPath string `json:"importPath,omitempty"` // import path of the package
IsPointer bool `json:"isPointer,omitempty"` // whether the paramter is a pointer
IsPointer bool `json:"isPointer,omitempty"` // whether the parameter is a pointer
IsComposite bool `json:"isComposite,omitempty"` // whether the type is map, slice, chan or array
}

Expand Down

0 comments on commit 1cce18e

Please # to comment.