go-app
go golang GUI ui PWA 

所属分类:collect
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-07-13 07:19:26
上 传 者sh-1993
说明:  使用Go编程语言和WebAssembly构建渐进式web应用程序的包。
(A package to build progressive web apps with Go programming language and WebAssembly.)

文件列表:
CODE_OF_CONDUCT.md (3218, 2023-08-16)
CONTRIBUTING.md (2501, 2023-08-16)
LICENSE (1074, 2023-08-16)
docs/ (0, 2023-08-16)
docs/CNAME (10, 2023-08-16)
docs/actions.html (53915, 2023-08-16)
docs/ads.txt (58, 2023-08-16)
docs/app-worker.js (3110, 2023-08-16)
docs/app.css (1564, 2023-08-16)
docs/app.js (7989, 2023-08-16)
docs/architecture.html (55193, 2023-08-16)
docs/components.html (60250, 2023-08-16)
docs/concurrency.html (55127, 2023-08-16)
docs/declarative-syntax.html (62468, 2023-08-16)
docs/getting-started.html (57019, 2023-08-16)
docs/github-deploy.html (54012, 2023-08-16)
docs/icon.png (35506, 2023-08-16)
docs/index.html (59316, 2023-08-16)
docs/install.html (53314, 2023-08-16)
docs/js.html (56656, 2023-08-16)
docs/lifecycle.html (53965, 2023-08-16)
docs/manifest.webmanifest (839, 2023-08-16)
docs/migrate.html (51840, 2023-08-16)
docs/notifications.html (59195, 2023-08-16)
docs/privacy-policy.html (53712, 2023-08-16)
docs/reference.html (2282038, 2023-08-16)
docs/routing.html (53202, 2023-08-16)
docs/seo.html (56502, 2023-08-16)
docs/src/ (0, 2023-08-16)
docs/src/actions-page.go (1066, 2023-08-16)
docs/src/architecture-page.go (1236, 2023-08-16)
docs/src/built-with-goapp.go (3157, 2023-08-16)
... ...

go-app

GitHub actions Go Report Card GitHub release pkg.go.dev docs Twitter URL

Go-app is a package for **building progressive web apps (PWA)** with the [Go programming language (Golang)](https://golang.org) and [WebAssembly (Wasm)](https://webassembly.org). Shaping a UI is done by using a **[declarative syntax](https://go-app.dev/declarative-syntax) that creates and compose HTML elements only by using the Go programing language**. It **uses [Go HTTP standard](https://golang.org/pkg/net/http) model**. An app created with go-app can out of the box **runs in its own window**, **supports offline mode**, and is **SEO friendly**. ## Documentation (built with go-app) [![go-app documentation](docs/web/images/go-app.png)](https://go-app.dev) ## Install **go-app** requirements: - [Go 1.18](https://golang.org/doc/go1.17) or newer - [Go module](https://github.com/golang/go/wiki/Modules) ```sh go mod init go get -u github.com/maxence-charriere/go-app/v9/pkg/app ``` ## Declarative syntax Go-app uses a [declarative syntax](https://go-app.dev/declarative-syntax) so you can **write reusable component-based UI elements** just by using the Go programming language. Here is a Hello World component that takes an input and displays its value in its title: ```go type hello struct { app.Compo name string } func (h *hello) Render() app.UI { return app.Div().Body( app.H1().Body( app.Text("Hello, "), app.If(h.name != "", app.Text(h.name), ).Else( app.Text("World!"), ), ), app.P().Body( app.Input(). Type("text"). Value(h.name). Placeholder("What is your name?"). AutoFocus(true). OnChange(h.ValueTo(&h.name)), ), ) } ``` ## Standard HTTP Apps created with go-app complies with [Go standard HTTP](https://golang.org/pkg/net/http) package interfaces. ```go func main() { // Components routing: app.Route("/", &hello{}) app.Route("/hello", &hello{}) app.RunWhenOnBrowser() // HTTP routing: http.Handle("/", &app.Handler{ Name: "Hello", Description: "An Hello World! example", }) if err := http.ListenAndServe(":8000", nil); err != nil { log.Fatal(err) } } ``` ## Getting started **Read the [Getting Started](https://go-app.dev/getting-started) document**. ## Built with go-app - [Lofimusic.app](https://lofimusic.app/collegemusic-lonely) - [Murlok.io](https://murlok.io/) - [liwasc](https://pojntfx.github.io/liwasc/) - [go-app Docs](https://go-app.dev/) ## Contributors ### Code Contributors This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. ### Financial Contributors Become a financial contributor and help us sustain [go-app](https://github.com/maxence-charriere/go-app) development. [[Contribute](https://opencollective.com/go-app/contribute)] #### Individuals #### Organizations Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/go-app/contribute)]

近期下载者

相关文件


收藏者