Answer the question
In order to leave comments, you need to log in
How to import an internal package?
There is a package: https://godoc.org/golang.org/x/tools/internal/semver
I want to use it.
import (
"encoding/json"
"fmt"
"golang.org/x/tools/internal/semver"
)
...
***\app.go:6:2: use of internal package golang.org/x/tools/internal/semver not allowed
import (
"encoding/json"
"fmt"
"golang.org/x/tools"
)
...
Answer the question
In order to leave comments, you need to log in
It's hard to learn Go... not all things seem obvious...
In general, there is magic: https://godoc.org/-/subrepo
NAKUYA?!?! I do not know.
Why create 2 repositories, I xs ?! But that's how it works. Many other things in Go seem strange to me - more precisely, their implementation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question