config

package
v0.0.0-...-e747ebf Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAndConvertSVGFiles

func ReadAndConvertSVGFiles(rootDir, outputFilePath string) error

func SaveConfig

func SaveConfig(filename string, config Config)

Types

type Config

type Config struct {
	CurrentVersion int16 `json:"currentVersion"`
}

Config struct to hold Mastodon and RSS feed details

func LoadConfig

func LoadConfig(filename string) Config

type Entry

type Entry struct {
	Data   string `json:"data"`
	Width  int    `json:"w"`
	Height int    `json:"h"`
	Title  string `json:"title"`
}

type MxLibrary

type MxLibrary struct {
	XMLName xml.Name `xml:"mxlibrary"`
	Entries string   `xml:",innerxml"`
}

type SVG

type SVG struct {
	XMLName xml.Name `xml:"svg"`
	Width   string   `xml:"width,attr"`
	Height  string   `xml:"height,attr"`
}

Jump to

Keyboard shortcuts

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