Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

go-app

> 编程语言
Open source

A package to build progressive web apps with Go programming language and WebAssembly.

8.9K stars0 likes1 views
WebsiteGitHub

About

A package to build progressive web apps with Go programming language and WebAssembly.

</a>

Go-app is a package for building progressive web apps (PWA) with the Go programming language (Golang) and WebAssembly (Wasm).

Shaping a UI is done by using a declarative syntax that creates and compose HTML elements only by using the Go programing language.

It uses Go HTTP standard 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)

Install

go-app requirements:

  • Go 1.18 or newer
  • Go module
bash
go mod init
go get -u github.com/maxence-charriere/go-app/v11/pkg/app

Declarative syntax

Go-app uses a 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 != "", func() app.UI {
				return app.Text(h.name)
			}).Else(func() app.UI {
				return 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 package interfaces.

go
func main() {
	// Components routing:
	app.Route("/", func() app.Composer { return &hello{} })
	app.Route("/hello", func() app.Composer { return &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 document.

Built with go-app

  • Lofimusic.app
  • Murlok.io
  • liwasc
  • go-app Docs

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain go-app development. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Issues· 53 open

View all issuesOpen on GitHub
  • #1119

    Is it possible to have non-data state be loaded before first render in an SPA?

    Updated Jun 8, 2026
  • #1111

    Dynamic Routes Not Supported

    Updated Jun 4, 2026
  • #1114

    Version 11 not mentioned on homepage

    Updated May 6, 2026
  • #993

    Docs points to Compo.Update which no longer exists

    Updated Apr 30, 2026
  • #1029

    Single HTML deployment

    Updated Feb 14, 2026
  • #1107

    OnChange fails to update event handler when function is a closure

    Updated Feb 5, 2026
  • #679

    Tinygo is just one package away

    Updated Feb 4, 2026
  • #1106

    How to disable Service worker for specific resource?

    Updated Jan 19, 2026
  • #1104

    Base Component Don't seem to work with Navigation

    Updated Dec 23, 2025
  • #1103

    NaN%

    Updated Dec 3, 2025

> Tags

Goawesome-gogogolanggui

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言