config

package
v0.0.0-...-690d975 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config implements the configurations required by the application to function properly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write() error

Write creates a new config file if one does not exist or modifies the existing config file. It returns an error if it fails to do both.

Types

type Config

type Config struct {
	Token    string
	FeedsUrl string
}

Config represents the configuration fields of the giterm app.

func GetConfig

func GetConfig() (Config, error)

GetConfig returns an instance of config.

Jump to

Keyboard shortcuts

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