config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadConfigFile

func DownloadConfigFile(file *os.File)

func FetchingConfigFile

func FetchingConfigFile() []byte

Types

type Config

type Config struct {
	List List
}

func ReadConfig

func ReadConfig() Config

func (*Config) CurrentDiscussion

func (c *Config) CurrentDiscussion() Item

func (*Config) IsValidConfig

func (c *Config) IsValidConfig()

func (*Config) PreviousDiscussion added in v0.1.0

func (c *Config) PreviousDiscussion() Item

func (*Config) PrintCurrentDiscussion

func (c *Config) PrintCurrentDiscussion()

func (*Config) PrintList

func (c *Config) PrintList()

type Item

type Item struct {
	Id   int    `json:"id"`
	Num  string `json:"num"`
	Date string `json:"date"`
	Url  string `json:"url"`
}

type List

type List []Item

Jump to

Keyboard shortcuts

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