Ah, that's a great point. Thanks for taking the time to explain it! I'll wait for the beta then – thanks!
On Thursday, December 3, 2020 at 1:10:51 AM UTC+1 axel.wa...@googlemail.com wrote: > No, that's not really possible. The stdlib is packaged with the Go > compiler and is very interdependent. > It also wouldn't help you a lot, because in go1.15, the `io/fs` package > has no implementation yet. For example, (*os.File).Stat does not return the > correct type, compare > https://tip.golang.org/pkg/os/#FileInfo > with > https://golang.org/pkg/os/#FileInfo > > If you want to experiment, you have to use a go version compiled from tip. > You can already develop against it, if you use build tags to guard on > go1.16 (though keep in mind that the interfaces could, theoretically, still > change). > > Otherwise you just have to wait for go1.16. A beta should be released soon > (probably next week, AIUI). > > > On Thu, Dec 3, 2020 at 12:32 AM Matt Mueller <mattm...@gmail.com> wrote: > >> Hey there, I'd like to try the io/fs package on Go 1.15. Is there an easy >> way to do this? >> >> I tried without much expectation: >> >> go get -u github.com/golang/go/src/io/fs >> >> But was greeted with this error: >> >> go: found github.com/golang/go/src/io/fs in github.com/golang/go/src >> v0.0.0-20201202201757-2d0258d49568 >> go get: github.com/golang/go/s...@v0.0.0-20201202201757-2d0258d49568 >> <http://github.com/golang/go/src@v0.0.0-20201202201757-2d0258d49568>: >> parsing go.mod: >> module declares its path as: std >> but was required as: github.com/golang/go/src >> >> Any ideas? Thanks! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/8857da92-774a-453b-9c81-46bf818b38b6n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/golang-nuts/8857da92-774a-453b-9c81-46bf818b38b6n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/1d0d62b9-e0fa-4315-bea0-b106db18e3b4n%40googlegroups.com.