mirror of
https://github.com/golang/go
synced 2024-11-23 21:10:05 -07:00
17 lines
154 B
Go
17 lines
154 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"io"
|
||
|
"log"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
fd, err := os.Open("test.go")
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
// TODO: use fd.
|
||
|
}
|