targets

package
v0.3.3 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 targets names the build targets nsgo accepts and expands the groups they form, so a tool that writes or checks an app's build.targets shares the tool's own table.

Index

Constants

View Source
const MiniProgram = "miniprogram"

MiniProgram names every mini program target at once.

Variables

This section is empty.

Functions

func Expand

func Expand(requested []string) ([]string, error)

Expand replaces all with every target that needs only Go and Xcode, a bare OS name with its architectures, and MiniProgram with every mini program, checks every name and drops duplicates, so each package is built once. android_x64 stays out of all and android because it needs an NDK, macos_universal out of all and macos because it builds both macOS architectures again to join them, and the mini programs because they take only Go apps that fit their packages.

func GoAndXcode

func GoAndXcode() []string

GoAndXcode returns the packages a Mac with Go and Xcode can build, which is what all stands for. android_x64 is omitted: Go links android/amd64 only with cgo, so it needs an NDK; macos_universal, which joins the two macOS targets' builds; the harmonyos preview, and the mini programs, which only some apps fit.

func Names

func Names() []string

Names returns every target nsgo build accepts, in build order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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