TAG

Golang

Golang read and update same file [SOLVED]

Update file using os.OpenFile with os.O_APPEND flag and Write() function, Using WriteString() function to append string to a file, Using WriteAt() function to …

By tuannguyen · 5 min read · GOLANG Solutions

Golang GOPATH vs GOROOT Comparison

We perform a comparison and difference between GOPATH and GOROOT variable available in go env.

By tuannguyen · 5 min read · GO