mirror of
https://github.com/golang/go
synced 2024-11-18 10:44:45 -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.
|
||
|
}
|