To follow up on Axel's suggestion to use "tip", this tool will automatically download the latest repository and compile it for you, with just two simple commands (download/compile the tool with go get, then run the tool): https://godoc.org/golang.org/dl/gotip
I used it the other week and I was quite impressed with how smooth it was! On Wednesday, December 2, 2020 at 6:11:32 PM UTC-7 Uvelichitel wrote: > $ git checkout master > > in source tree provide me `io/fs` > > > On Thu, Dec 3, 2020 at 3:10 AM 'Axel Wagner' via golang-nuts < > golan...@googlegroups.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...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/CAEkBMfEMHcb5zNiPdH-WAfC5-QVkxpwzDh8oeULE77TN103SjQ%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/golang-nuts/CAEkBMfEMHcb5zNiPdH-WAfC5-QVkxpwzDh8oeULE77TN103SjQ%40mail.gmail.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/4f1cdbc6-b9ba-4379-a21f-8b2c46b0bf67n%40googlegroups.com.