9 Commits
Author SHA1 Message Date
Oleksandr Redko 3555113e58 chore: Format code with golangci-lint fmt (#3949) 2026-01-30 10:22:07 -05:00
Oleksandr Redko 4510383b81 chore: Spell "unmarshal" consistently with one el (#3441) 2025-01-20 10:00:35 -05:00
Oleksandr Redko 1ffcddbd4e docs: Add dots at the end of sentences (#3325) 2024-10-11 12:08:23 -04:00
6543 521fd0d1f0 Add GetTime method to Timestamp (#2743) 2023-04-09 15:46:19 -04:00
Brett Logan d7115423bf Add Support For Millisecond Timestamps (#1850)
Fixes: #1849.
2021-04-08 08:46:53 -04:00
Oleg Kovalov 55e783ff49 get rid of redundant dereference time.Time (#960) 2018-07-31 18:42:42 -04: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
Billy Lynch 39e9dcdcad Moved timestamp implementation into its own file.
This was done so that timestamp_test.go would have a corresponding file that
could easily be found. It did not make sense to move timestamp_test.go into
github_test.go if we are trying to move to a more specific source structure.
2013-08-01 12:08:47 -04:00