Now I’ve struct which implements this interface like following
type MyRunner struct {
path string
}
func (r MyRunner) soSomthing(newPath string) error {
run(path)
return nil
}
Now I want to create the object and I got error implicit assignment of unexported field 'path' in MyRunner literal
This is how I do it
&run.MyRunnter{”a/b/c/“}
is there a way to do it without the New keyword in Go ?