mirror of
https://github.com/golang/go
synced 2024-11-05 23:26:18 -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.
|
||
|
}
|