3 ms·
That's not it. You can't write to a file handle returned by os.Open. https://pkg.go.dev/os#Open https://pkg.go.dev/os#Open func Open(name string) (*File,
by randomdata 2y ago
That's not it. You can't write to a file handle returned by os.Open.
https://pkg.go.dev/os#Open https://pkg.go.dev/os#Open
func Open(name string) (*File, error)
Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY. If there is an error, it will be of type *PathError.