app

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package app is an NSGo app made to be embedded: it greets the user its host names in its launch parameters, shows the host's messages, calls and posts to the host, shows the host's own badge as a native component, opens a link the host routes, and themes itself with the host's tokens, locale and text size. The Go desktop host in examples/embed-desktop and the page in examples/embed-web show it twice; examples/embedded builds it for the iOS and Android hosts and, with host.js as its page's host, for the web.

Index

Constants

View Source
const Badge = "host.badge"

Badge is the native component a host registers for the app: a view of the host's own showing the "count" prop, which emits "tap".

View Source
const OrderURL = "https://example.com/orders/42"

OrderURL is the link the app opens, which a host routes to its own order page.

Variables

This section is empty.

Functions

func Root

func Root(cx *core.Scope) core.Node

Root is the app.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL