-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiple: Implement
fmt.Stringer
for a Bunch of Types (#117)
* wdte: Implement `fmt.Stringer` for `GoFunc`, `Scope`, and `ScopedFunc`. Also, switch to `strings.Builder`. Go 1.11 is out now, so I don't think I have to worry too much about compatability problems. Hopefully. * wdte: Implement `fmt.Stringer` for `Array` and tweak `Scope.String()`. * std/io: Implement `fmt.Stringer` for `Reader` and `Writer`. Also, clarify the documentation for those types a bit. * std/io: Implement special `fmt.Stringer` handling for std{in,out,err}. * std/io: Actually use stdout for stdout. Holy crud. How long has that bug been there? * std/io: Defer the `fmt.Stringer` implementation upwards for std{in,out,err}. This removes the specialness of the handling. * std/io: Fix a typo. * std/io/file: Implement `fmt.Stringer` for `File`. * std/stream: Implement a very basic `fmt.Stringer` for every type. * std/arrays: Implement `fmt.Stringer` for the `Stream` implementation.
- Loading branch information
1 parent
b6892aa
commit d7d6392
Showing
8 changed files
with
146 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters