From 58afd236a8c24c61767966af58726ab980d03753 Mon Sep 17 00:00:00 2001 From: VIVIMAN Date: Fri, 23 Sep 2022 17:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E6=96=B0=E7=9A=84=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=20NuxUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data_func/go_to_nuxui/demo01/main.go | 18 ++++++++++++++++++ golang_learn/go.mod | 1 + golang_learn/go.sum | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 golang_learn/data_func/go_to_nuxui/demo01/main.go diff --git a/golang_learn/data_func/go_to_nuxui/demo01/main.go b/golang_learn/data_func/go_to_nuxui/demo01/main.go new file mode 100644 index 0000000..4663825 --- /dev/null +++ b/golang_learn/data_func/go_to_nuxui/demo01/main.go @@ -0,0 +1,18 @@ +package main + +import ( + _ "nuxui.org/nuxui/ui" +) + +func main() { + /* nux.Run(nux.NewWindow(nux.Attr{ + "width": "15%", // screen_width x 15% + "height": "2:1", // width : height = 2 : 1 + "title": "hello", + "content": nux.Attr{ + "type": "nuxui.org/nuxui/ui.Text", + "text": `Hello nuxui`, + }, + }))*/ + +} diff --git a/golang_learn/go.mod b/golang_learn/go.mod index 4e4e9f0..45910dd 100644 --- a/golang_learn/go.mod +++ b/golang_learn/go.mod @@ -56,4 +56,5 @@ require ( gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b + nuxui.org/nuxui v0.1.1 ) diff --git a/golang_learn/go.sum b/golang_learn/go.sum index 5a8a1f3..c652ef9 100644 --- a/golang_learn/go.sum +++ b/golang_learn/go.sum @@ -893,6 +893,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +nuxui.org/nuxui v0.1.1 h1:XIpfkjXJcnoc7W0zpDTqDtmMrzCbRpW3oPSVsEXxxU4= +nuxui.org/nuxui v0.1.1/go.mod h1:0ENLlWr8fL0N0K6OvRJJTkvFBi65kuUZjwMsi7OQ0Kk= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=