I tested the program on both Linux and Mac, and the behavior is
consistent. Makes sense, Looks like an expected behavior. Thanks.
Just paste the program as below,
package main
import (
"fmt"
"os"
)
func main() {
f, err := os.OpenFile("/tmp/db", os.O_RDWR | os.O_CREATE, 0666)
if err != nil {
As a general request, please don't post screen images. They are very hard
to read, especially for (but not exclusively for) those with visual
impairment. They also can't be copy-pasted.
You haven't said what platform you are running on. However if this is
Linux or another POSIX-compatible sys