Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
nano-adhara committed Oct 9, 2020
1 parent 97591c4 commit 0f28ebd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 6 additions & 4 deletions pkg/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package main

import "github.com/nano-adhara/test-commons/pkg/other"
import (
"github.com/nano-adhara/test-commons/pkg/other"
"github.com/nano-adhara/test-commons/pkg/some"
)

func main() {
Foo()
}

func Foo() {
other.Bar()
func Foo(some some.Some) {
other.Bar(some)
}
4 changes: 3 additions & 1 deletion pkg/other/other.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package other

func Bar() {
import "github.com/nano-adhara/test-commons/pkg/some"

func Bar(some some.Some) {

}
3 changes: 3 additions & 0 deletions pkg/some/some.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package some

type Some struct{}

0 comments on commit 0f28ebd

Please sign in to comment.