Golang garbage collection of open file descriptors
When you write Go code, you use os.Stdout
and os.Stderr
instead of our old C friends, stdout
and stderr
from stdio.h
.
os.Stdin
, os.Stdout
and os.Stderr
have type *os.File
.
This Go type encapsulates encapsulates Linux file descriptors
(small integer values representing open files).