#go #golang why it is incorrect and does it work for you? f,_:=os.Create("hi") defer f.Close() … f.write([]byte{"world"}) … os.Remove("hi")