structs

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorSetting

type ColorSetting struct {
	Red   uint8 `json:"red"`
	Green uint8 `json:"green"`
	Blue  uint8 `json:"blue"`
	Alpha uint8 `json:"alpha"`
}

ColorSetting represents a color setting with RGBA values.

func ColorSettingFromString

func ColorSettingFromString(setting string) ColorSetting

ColorSettingFromString converts a string to a ColorSetting struct. The string should be in the format "red;green;blue;alpha".

func (*ColorSetting) ToString

func (setting *ColorSetting) ToString() string

ToString converts a ColorSetting struct to a string. The format is "red;green;blue;alpha".

type QrCodeConfig

type QrCodeConfig struct {
	BgColor ColorSetting `json:"qrcode-bgcolor"`
	FgColor ColorSetting `json:"qrcode-fgcolor"`
}

QrCodeConfig represents the configuration for a QR code.

func StandardQrCodeConfig

func StandardQrCodeConfig() QrCodeConfig

StandardQrCodeConfig returns a standard qrcode configuration

Jump to

Keyboard shortcuts

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