-
-
Save amelhusic/56fca85dce24a1fdc48d0a329295c058 to your computer and use it in GitHub Desktop.
Revisions
-
crgimenes revised this gist
Jun 10, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import ( func main() { r := ioutil.NopCloser(bytes.NewReader([]byte("hello world"))) // r type is io.ReadCloser // example to test r buf := new(bytes.Buffer) buf.ReadFrom(r) r.Close() -
crgimenes revised this gist
Jun 10, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import ( func main() { r := ioutil.NopCloser(bytes.NewReader([]byte("hello world"))) // r type is io.ReadCloser // example to test r buf := new(bytes.Buffer) buf.ReadFrom(r) r.Close() -
crgimenes revised this gist
Mar 24, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import ( ) func main() { r := ioutil.NopCloser(bytes.NewReader([]byte("hello world"))) // r type is io.ReadCloser // exemplo to test r buf := new(bytes.Buffer) -
crgimenes created this gist
Feb 22, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ package main import ( "bytes" "fmt" "io/ioutil" ) func main() { r := ioutil.NopCloser(bytes.NewReader([]byte("hello world"))) // r type is io.ReaderCloser // exemplo to test r buf := new(bytes.Buffer) buf.ReadFrom(r) r.Close() s := buf.String() fmt.Println(s) }