Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme #909

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/AllenDang/giu)](https://goreportcard.com/report/github.com/AllenDang/giu)
![Build Status](https://github.com/AllenDang/giu/actions/workflows/build.yml/badge.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/AllenDang/giu.svg)](https://pkg.go.dev/github.com/AllenDang/giu)
[![Discord Shield](https://discord.com/api/guilds/1306199225616306248/widget.png?style=shield)](https://discord.gg/Tt7eq6YKQS)

A rapid cross-platform GUI framework for Go based on [Dear ImGui](https://github.com/ocornut/imgui) and the great Go binding [imgui-go](https://github.com/inkyblackness/imgui-go).

Expand Down Expand Up @@ -57,32 +58,32 @@ Compared to other Dear ImGui golang bindings, giu has the following features:
package main

import (
"fmt"
"fmt"

g "github.com/AllenDang/giu"
g "github.com/AllenDang/giu"
)

func onClickMe() {
fmt.Println("Hello world!")
fmt.Println("Hello world!")
}

func onImSoCute() {
fmt.Println("Im sooooooo cute!!")
fmt.Println("Im sooooooo cute!!")
}

func loop() {
g.SingleWindow().Layout(
g.Label("Hello world from giu"),
g.Row(
g.Button("Click Me").OnClick(onClickMe),
g.Button("I'm so cute").OnClick(onImSoCute),
),
)
g.SingleWindow().Layout(
g.Label("Hello world from giu"),
g.Row(
g.Button("Click Me").OnClick(onClickMe),
g.Button("I'm so cute").OnClick(onImSoCute),
),
)
}

func main() {
wnd := g.NewMasterWindow("Hello world", 400, 200, g.MasterWindowFlagsNotResizable)
wnd.Run(loop)
wnd := g.NewMasterWindow("Hello world", 400, 200, g.MasterWindowFlagsNotResizable)
wnd.Run(loop)
}
```

Expand Down Expand Up @@ -218,10 +219,6 @@ rm YourExeName.syso
rm YourExeName.rc
```

## Documentation

Check [Wiki](https://github.com/AllenDang/giu/wiki)

## Contribution

All kinds of pull requests (document, demo, screenshots, code, etc.) are more than welcome!
Expand Down
Loading