Browse Source

学习新的框架 NuxUI

master
VIVIMAN 2 years ago
parent
commit
58afd236a8
  1. 18
      golang_learn/data_func/go_to_nuxui/demo01/main.go
  2. 1
      golang_learn/go.mod
  3. 2
      golang_learn/go.sum

18
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`,
},
}))*/
}

1
golang_learn/go.mod

@ -56,4 +56,5 @@ require (
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2 v2.4.0 gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
nuxui.org/nuxui v0.1.1
) )

2
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-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.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.4/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/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/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

Loading…
Cancel
Save