Skip to content

Commit

Permalink
Merge pull request #31 from phelmkamp/cleanup
Browse files Browse the repository at this point in the history
misc. cleanup
  • Loading branch information
phelmkamp authored Dec 22, 2019
2 parents a9b297f + c497331 commit cd46cae
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package testdata
package foobar

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// GENERATED BY metatag, DO NOT EDIT
// (or edit away - I'm a comment, not a cop)
package testdata

package foobar

import (
"time"
"fmt"
"reflect"
"time"
)

// NewFoo creates a new Foo with the given initial values.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package testdata
package foobar

import (
"reflect"
Expand Down
1 change: 1 addition & 0 deletions internal/testdata/person/person_meta.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// GENERATED BY metatag, DO NOT EDIT
// (or edit away - I'm a comment, not a cop)

package person

import (
Expand Down
2 changes: 1 addition & 1 deletion meta/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

const (
topComment = "// GENERATED BY metatag, DO NOT EDIT\n// (or edit away - I'm a comment, not a cop)\n"
topComment = "// GENERATED BY metatag, DO NOT EDIT\n// (or edit away - I'm a comment, not a cop)\n\n"
fileTemplate = "package %s\n%s%s"
)

Expand Down
3 changes: 3 additions & 0 deletions meta/meta_meta.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// GENERATED BY metatag, DO NOT EDIT
// (or edit away - I'm a comment, not a cop)

package meta

// FilterMethods returns a copy of Methods, omitting elements that are rejected by the given function.
// The n argument determines the maximum number of elements to return (n < 1: all elements).
func (f *File) FilterMethods(fn func(*Method) bool, n int) Methods {
cap := n
if n < 1 {
Expand Down

0 comments on commit cd46cae

Please sign in to comment.