File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ type Importer struct {
20
20
}
21
21
22
22
// NewImporter creates a new importer
23
- func NewImporter (options ... option ) * Importer {
23
+ func NewImporter (options ... Option ) * Importer {
24
24
i := & Importer {
25
25
fset : token .NewFileSet (),
26
26
mode : goparser .ParseComments ,
Original file line number Diff line number Diff line change 1
1
package gotype
2
2
3
- type option func (i * Importer )
3
+ type Option func (i * Importer )
4
4
5
5
// ErrorHandler returns the error handler option
6
- func ErrorHandler (f func (error )) option {
6
+ func ErrorHandler (f func (error )) Option {
7
7
return func (i * Importer ) {
8
8
i .errorHandler = f
9
9
}
10
10
}
11
11
12
12
// WithCommentLocator sets comment locator
13
- func WithCommentLocator () option {
13
+ func WithCommentLocator () Option {
14
14
return func (i * Importer ) {
15
15
i .isCommentLocator = true
16
16
}
You can’t perform that action at this time.
0 commit comments