desktop

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 3 Imported by: ? modules, 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 desktop provides cross-platform desktop application support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTauriConfig

func GenerateTauriConfig() string

GenerateTauriConfig generates a Tauri project configuration.

func GenerateWailsConfig

func GenerateWailsConfig() string

GenerateWailsConfig generates a Wails project configuration.

Types

type AppConfig

type AppConfig struct {
	Name     string       `json:"name"`
	Version  string       `json:"version"`
	Window   WindowConfig `json:"window"`
	Features []string     `json:"features"`
}

AppConfig represents the desktop application configuration.

func DefaultConfig

func DefaultConfig() *AppConfig

DefaultConfig returns the default desktop app configuration.

func (*AppConfig) Describe

func (c *AppConfig) Describe() string

Describe returns app description.

type WindowConfig

type WindowConfig struct {
	Title  string `json:"title"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
	Theme  string `json:"theme"` // light, dark
}

WindowConfig represents a desktop window configuration.

Jump to

Keyboard shortcuts

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