Given the code:
package main
import (
"fmt"
"time"
"github.com/buger/goterm"
)
func main() {
for {
w := goterm.Width()
fmt.Printf("\rwidth: %d", w)
time.Sleep(100 * time.Millisecond)
}
}
Width reported correctly without tmux:

Width reported incorrectly inside tmux:
