-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove reference to fmt
in docs
#1547
Comments
imo better to explain it. There is a "test context" and a normal "execution context", and there will likely continue to be. You can find a list of all of the "extra packages" and their functions here: Lines 103 to 114 in b2046c5
The functions, variables and types they expose are below in the switch statement. Note that not all of the package names in the switch cases are available in test contexts; only the ones in the if statement. Why is that?
Essentially, it's all a bit screwed, we have the directory These work together with the "testing stdlibs", available here: https://github.com/gnolang/gno/tree/master/gnovm/tests/stdlibs -- currently it only covers a few functions in The long term plan (2-3 months down the line, at least): have fmt use reflection, and not be "special" to test contests, together with other useful "test-specific" packages (crypto/md5 and sha1 maybe, encoding/binary, encoding/json, encoding/xml, math/big, math/rand). We will continue having test-specific functions in Test specific stdlibs will also be available in |
Irrespective of |
<!-- please provide a detailed description of the changes made in this pull request. --> In select places within the documentation, we still import `fmt` despite this not being fully supported. This PR replaces `fmt` usage in those select cases with `ufmt`. Closes: #1547 <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
Description
Presently, we find evidence of
fmt
andufmt
usage within the monorepo (both in tests as well as in realm instances). Until reflection is supported, we should removefmt
from being referenced within our documentation so as not to confuse people.TODO:
fmt
usage within docsThe text was updated successfully, but these errors were encountered: