Os.close undefined

image

Any help appreciated. Is my GO install corrupt or am I missing something? Go version is go1.9.2 linux/amd64 running Solus 4.9.75-68.lts reasonably uptodate

Close() is defined on *os.File, not the package.

fL.Close() is what you want in this case.

Please don’t forget to check the returned errors.

Thanks for your prompt and useful reply. I started using GO 24 Dec and
have found it very usable and am optimistic that it will do the job I
want. I am impressed by the GO forum. My first post resolved in about half an hour.

1 Like

It would be easier for us if you don’t include code as a screenshot but as text. The editor helps you to format your code properly.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.