configuration

package
v0.0.0-...-bf1b6d7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package configuration handles the configuration of the program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadProgConfig

func ReadProgConfig(configfile string)

ReadProgConfig Reads configuration file and fills configuration values.

func ReadReposConfig

func ReadReposConfig(filename string)

ReadReposConfig Reads repos configuration file and updates config values.

Types

type Config

type Config struct {
	Location      string
	Priority      string
	AutoSync      string
	SyncType      string
	SyncURI       string
	MainRepo      string
	Release       string
	ReposConfPath string
}

Config the configuration structure

var Configuration Config

Configuration contains the current configuration values

Jump to

Keyboard shortcuts

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