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: 0

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