Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "log"
- "os"
- )
- func main() {
- f, err := os.Open("file.txt")
- if err != nil {
- log.Fatal(err)
- }
- defer f.Close()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement