config

package
v0.0.0-...-ec7802c Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteStructure

func DeleteStructure(name string)

func EditStructure

func EditStructure(oldName string, newName string, newUrl string, newLabel string)

func EditUsername

func EditUsername(userName string)

func GetAllStructs

func GetAllStructs() map[string]StructData

func UseName

func UseName(useName bool)

Types

type StructData

type StructData struct {
	Label string `json:"label"`
	Link  string `json:"link"`
}

func GetStructData

func GetStructData(structType string) (StructData, bool)

type Structures

type Structures struct {
	StructData map[string]StructData `json:"structures"`
}

type UserName

type UserName struct {
	UseUserName bool   `json:"useName"`
	Username    string `json:"username"`
}

func GetUserConfig

func GetUserConfig() UserName

Jump to

Keyboard shortcuts

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