gcla / gowid

Compositional widgets for terminal user interfaces, written in Go, inspired by urwid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When running hello world code: 30:22: undefined: text.TextContentSegment

richstokes opened this issue · comments

Hi @richstokes - I'll look into this. I should make a bug template of some sort, but would you mind sending me

  • the value of TERM and the terminal emulator you're using
  • if you have it, the full backtrace?

I pushed a couple of changes yesterday to gowid, so worth making sure you're up to date too.

Thanks;

echo $TERM
xterm-256color

iTerm2 on MacOS. Not sure how to get the full trace - thats literally all thats printed:

go run hello.go
# command-line-arguments
./hello.go:30:22: undefined: text.TextContentSegment

On the latest

@richstokes - sorry to waste your time - the documentation has an error, I'll fix it now.

Hi - please could you try replacing "TextContentSegment" with "ContentSegment" in your example.

That has fixed it :)

thanks, I'll close this out