Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhp committed Oct 11, 2023
1 parent efa95d9 commit e50e7bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ go install go.uber.org/mock/mockgen@latest
### Archive mode

Archive mode generates mock interfaces from a package archive
file (.a). It is enabled by using the -archive flag, the import
path is also needed as a non-flag argument. No other flags are
required.
file (.a). It is enabled by using the -archive flag and two
non-flag arguments: an import path, and a comma-separated
list of symbols.

Example:

Expand Down
2 changes: 1 addition & 1 deletion mockgen/mockgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Example:
Archive mode generates mock interfaces from a package archive
file (.a). It is enabled by using the -archive flag and two
two non-flag arguments: an import path, and a comma-separated
non-flag arguments: an import path, and a comma-separated
list of symbols.
Example:
mockgen -archive=pkg.a database/sql/driver Conn,Driver
Expand Down
2 changes: 1 addition & 1 deletion mockgen/model/model_gotypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ func typeFromGoTypesType(t types.Type) (Type, error) {
if t.NumFields() == 0 {
return PredeclaredType("struct{}"), nil
}
// TODO: UnsafePointer
}

// TODO: Struct, UnsafePointer
return nil, fmt.Errorf("can't yet turn %v (%T) into a model.Type", t.String(), t)
}

0 comments on commit e50e7bb

Please sign in to comment.