Go · Function
os.Open
os.Open opens a named file for reading and returns a file handle plus an error. Read from the handle, check errors, and close it when finished.
Last updated
Syntax
func Open(name string) (*File, error)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
os.File(*os.File).Read(*os.File).Closeos.OpenFileos.Createio.EOFos.PathError