Here is my problem and my project structure
src
|-->config
|--> config.go
|-->otherPackage
|--> otherFile.go
|-->main.go
I have a type on config.go
that I would like to use in otherFile.go
But when I tried to add it to the import here theses issues:
imported and not used.
undefined: Config
Although I use it in the function declaration
function(target float64, entries [2]float64, config Config)
What is the problem with this?
I tried to import it with
import (
"fmt"
"math"
"../config"
)