SkillAgentSearch skills...

Gowi

Gui for golang, UI created by ResEdit

Install / Use

/learn @f0cii/Gowi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

gowi

Gui for golang, UI created by ResEdit

Code

import ( "github.com/sumorf/gowi" . "github.com/sumorf/gowi/declarative" "fmt" )

type MyMainWindow struct { *gowi.MainWindow label1 *gowi.Label button1 *gowi.Button }

func main() { app := gowi.New()

mw := new(MyMainWindow)

m := MainWindow{
    AssignTo:&mw.MainWindow,
    ID:1000,
    Controls:[]Control{
        Button{
            AssignTo:&mw.button1,
            ID:1001,
            OnClicked:func() {
                fmt.Println("Button clicked.")
                mw.SetWindowText("Clicked")
            },
        },
    },
}
m.Create()
m.Show()

mw.SetWindowText("Hello")
app.Run()

}

Screenshots

How to design:

ResEdit

Run:

Running screenshot

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated3y ago
Forks4

Languages

Go

Security Score

75/100

Audited on Sep 18, 2022

No findings