You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-render: A verbose recursive Go type-to-string conversion library.
This is not an official Google product.
Overview
The render package implements a more verbose form of the standard Go string
formatter, fmt.Sprintf("%#v", value), adding:
Pointer recursion. Normally, Go stops at the first pointer and prints its
address. The render package will recurse and continue to render pointer
values.
Recursion loop detection. Recursion is nice, but if a recursion path detects
a loop, render will note this and move on.
Custom type name rendering.
Deterministic key sorting for string- and int-keyed maps.
Make sure your user.email and user.name are configured in git config.
Install the pcg git hook:
go get -u github.com/maruel/pre-commit-go/cmd/... && pcg
Run the following to setup the code review tool and create your first review:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $HOME/src/depot_tools
export PATH="$PATH:$HOME/src/depot_tools"
cd $GOROOT/github.com/luci/go-render
git checkout -b work origin/master
# hack hack
git commit -a -m "This is awesome\nR=joe@example.com"
# This will ask for your Google Account credentials.
git cl upload -s
# Wait for LGTM over email.
# Check the commit queue box in codereview website.
# Wait for the change to be tested and landed automatically.
Use git cl help and git cl help <cmd> for more details.
About
Go library implementing expanded type-to-string conversion.