internal

package
v0.0.0-...-fa751a3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Chrome  = "userChrome.css"
	Content = "userContent.css"
)

Variables

This section is empty.

Functions

func AddImportToFile

func AddImportToFile(s string, path string) string

func Contains

func Contains[T comparable](arr []T, elem T) bool

Contains checks if an element is present in a slice

func InitFs

func InitFs(firefoxPath string, profileName string) afero.Fs

func LocateUserFiles

func LocateUserFiles(fs afero.Fs, modPath string) (userFilePaths map[UserFile]string)

func PrepareFirefox

func PrepareFirefox(fs afero.Fs) (string, error)

func Remove

func Remove[T any](slice []T, s int) []T

Types

type FoxYml

type FoxYml struct {
	Mods []FoxYmlMod `yaml:"mods"`
}

func LoadFoxYml

func LoadFoxYml(fs afero.Fs, path string) (FoxYml, error)

type FoxYmlMod

type FoxYmlMod struct {
	Name string `yaml:"name"`
	Url  string `yaml:"url"`
}

type UserFile

type UserFile string

Jump to

Keyboard shortcuts

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