From 433f915c5d7880ee660f27437d1e140cd80ed0b7 Mon Sep 17 00:00:00 2001 From: gucio321 Date: Wed, 13 Nov 2024 10:21:08 +0100 Subject: [PATCH] readme: correct indent in a hallo-world example --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7962c1ed..43852ab0 100644 --- a/README.md +++ b/README.md @@ -57,32 +57,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) } ```