Skip to content

Commit

Permalink
refactor: change plugin/sample package to sample (#136)
Browse files Browse the repository at this point in the history
To make the conventional `go build ./...` and `go install ./...`
work. With the sample in the `main` package currently:

```shellsession
$ go build ./...
runtime.main_main·f: function main is undeclared in the main package
```

Closes #135
  • Loading branch information
scop authored Oct 6, 2022
1 parent 93d1168 commit 3836117
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin/sample/boot.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package sample

import "github.com/daveshanley/vacuum/plugin"

Expand Down
2 changes: 1 addition & 1 deletion plugin/sample/boot_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package sample

import (
"github.com/daveshanley/vacuum/plugin"
Expand Down
2 changes: 1 addition & 1 deletion plugin/sample/check_single_path.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package sample

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion plugin/sample/useless_func.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package sample

import (
"github.com/daveshanley/vacuum/model"
Expand Down

0 comments on commit 3836117

Please sign in to comment.