News for hackers. Stuff that matters.
Re:Show HN: A new stdlib for Golang focusing on platform nat... by Leotard6963 on Tuesday October 03, 2023 @07:05AM (#37750241)
You are right, the pcz std won't be a drop-in replacement to the official std as they have different modulepath.

We decided to make it this way so:

1) you can import packages from the pcz std module like you do with any other Go package without setting `GOROOT` to an unofficial std.

2) and because of 1), you can import packages from pcz std in your go application but still using the `go` command rather the `pcz` command.

In the future, we may provide drop-in replacement for applications using official std by introducing a compatibility module and a cli flag to redirect imports using packages from the official std to that module.

There are no comments on this comment yet.