12 Commits
Author SHA1 Message Date
Mohamad Al-Zawahreh 3a3eaaf0db perf: Optimize Stringify allocations (~3x faster) (#3914) 2026-01-23 19:53:57 -05:00
Oleksandr Redko d47559a679 chore: Enable 'modernize'; bump golangci-lint to v2.6.1 (#3817) 2025-11-08 15:10:32 -05:00
Oleksandr Redko 68b82b5bb1 refactor: Simplify for range loops (#3762) 2025-10-06 14:47:09 -04:00
Glenn Lewis 4505771989 Prefer %v over %d,%s and add fmtpercentv custom linter (#3756) 2025-10-05 21:39:53 -04:00
Jorge Ferrero 7e700a7466 feat: Add some GitHub Classroom API endpoints (#3690) 2025-09-23 12:59:26 -04:00
Oleksandr Redko 3c5408e78f chore: Use any instead of interface{} (#3584) 2025-06-03 09:33:46 -04:00
Oleksandr Redko eafd379374 fix: Avoid allocation in the stringifyValue (#3292) 2024-09-26 07:55:19 -04:00
WillAbides fd33b81221 Fix linting (#2903) 2023-09-08 08:55:37 -04:00
Glenn Lewis a19996a596 Support map type in go generate (#1867)
Fixes: #1866.
2021-05-07 09:33:07 -04:00
Dmitri Shuralyov 493b233dca Use single space after period. (#549)
This commit was largely generated by:

	perl -i -npe 's,^(\s*// .+[a-z]\.)  +([A-Z]),$1 $2,' $(git grep -l -E '^\s*//(.+\.)  +([A-Z])')

With additional manual followups to catch the few remaining missed
cases, such as inside non-go files, spaces after question marks, etc.

Fixes #548.
2017-02-15 16:14:26 -05:00
Will Norris 303846dd04 redeclare String() as value method throughout 2013-08-21 15:17:53 -07:00
Will Norris 8f77def830 add Stringify function
This provides somewhat reasonable string representations of GitHub
structs.  This is specifically designed for this library and takes a
number of shortcuts where it can, so is not suitable as a general
purpose solution.  That said, I am exporting this function because it is
useful for things like printing out slices of GitHub structs, as can be
seen in examples/example.go.

I am certainly open to suggestions for what exactly the stringified
output should look like.  Currently, I think I've found a reasonable
compromise between fmt's "%v" and "%s" output.
2013-08-20 13:39:59 -07:00