21 lines
279 B
Go
21 lines
279 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"io/ioutil"
|
||
|
"log"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
r := strings.NewReader("Go is a general-purpose language " +
|
||
|
"designed with systems programming in mind.")
|
||
|
|
||
|
b, err := ioutil.ReadAll(r)
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
|
||
|
fmt.Printf("%s", b)
|
||
|
}
|