added comments

This commit is contained in:
Mat Ryer 2016-08-29 15:27:09 +01:00
parent a788edc546
commit 61334a79ed

View File

@ -13,6 +13,7 @@ import (
"strings"
)
// Mocker can generate mock structs.
type Mocker struct {
src string
tmpl *template.Template
@ -20,6 +21,7 @@ type Mocker struct {
pkgs map[string]*ast.Package
}
// New makes a new Mocker for the specified package directory.
func New(src string) (*Mocker, error) {
fset := token.NewFileSet()
noTestFiles := func(i os.FileInfo) bool {