pri

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, MIT Imports: 11 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 pri writes the Windows resource index used by MSIX package manifests. It implements the data-only MRT v2 format described by Microsoft's MIT-licensed MRT Core readers and writers, without invoking Windows tools at build time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(mapName, defaultLanguage string, resources []Resource) ([]byte, error)

Write builds one complete resources.pri with language and scale candidates. mapName is the package identity name; defaultLanguage marks the app's fallback. It never reads files or mutates the supplied resource and candidate slices.

Types

type Candidate

type Candidate struct {
	Value, Language string
	Scale           int
}

Candidate supplies one string or relative file path, selected by Language or Scale. An empty qualifier is neutral; combining qualifiers is not supported.

type Resource

type Resource struct {
	Name       string
	Path       bool
	Candidates []Candidate
}

Resource is a case-insensitive slash-separated MRT name. Path values refer to files in the package; other values are UTF-16 strings stored in the index.

Jump to

Keyboard shortcuts

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