3 ms·
Please excuse the somewhat off topic and possibly ignorant comment but is importing classes from a URL a feature unique to the Go language?
by disposition2 12y ago
Please excuse the somewhat off topic and possibly ignorant comment but is importing classes from a URL a feature unique to the Go language?
- chii 12y agono. see http://docs.oracle.com/javase/6/docs/api/java/net/URLClassLoader.html#URLClassLoader%28java.net.URL%5B%5D%29 http://docs.oracle.com/javase/6/docs/api/java/net/URLClassLo...
- latch 12y agoimport "github.com/pravj/geo_pattern/pattern" will import from the file system, at $GOPATH/src/github.com/pravj/geo_pattern/pattern/ however, go get will fetch from the URL and install it in said path (it's a mixed blessing) The [free] Little Go Book [1] makes a special note of it :) [1] http://openmymind.net/assets/go/go.pdf http://openmymind.net/assets/go/go.pdf