I have a structure declared in main.go
as shown below:
type Organization struct {
ID string `json:"id"`
Count int `json:"count"` //node count
}
I have a package named configuration
and have a function like this:
func foo(org main.Organization) {
}
The issue is I am not able to access main.Organization
. Is there any way to access struct declared in main.go
in another package?