Unresolved reference 'CSSTag' #644
-
Hi! I took the code from the example https://github.com/AllenDang/giu/tree/master/examples/CSS-styling , but the IDE shows "undefined: gia.CSSTag". And also when compiling:
main.go package main
import (
_ "embed"
"github.com/AllenDang/giu"
)
//go:embed style.css
var cssStyle []byte
func loop() {
giu.Window("Window").Layout(
giu.CSSTag("button").To(
giu.Button("HI! I'm a button styled with CSS"),
),
giu.CSSTag("label").To(
giu.Label("I'ma normal label"),
),
)
}
func main() {
wnd := giu.NewMasterWindow("CSS Style [example]", 640, 480, 0)
if err := giu.ParseCSSStyleSheet(cssStyle); err != nil {
panic(err)
}
wnd.Run(loop)
} What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
gucio321
Feb 5, 2023
Replies: 1 comment 1 reply
-
@Stepashka20 most likely you are using too old giu version (go get github.com/AllenDang/giu@master) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Stepashka20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Stepashka20 most likely you are using too old giu version (go get github.com/AllenDang/giu@master)