config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = Config{}

Functions

This section is empty.

Types

type Config

type Config struct {
	Day   string
	Month string
	Year  string
}

Config defines the structure of the config file

func (*Config) DeleteConfig

func (c *Config) DeleteConfig()

func (*Config) InitConfig

func (c *Config) InitConfig()

InitConfig initializes the config file

func (*Config) ReadConfig

func (c *Config) ReadConfig() (string, string, string)

ReadConfig reads the date of birth from the config file Returns the day, month and year

func (*Config) WriteConfig

func (c *Config) WriteConfig(date string)

WriteConfig writes the date of birth to the config file

Jump to

Keyboard shortcuts

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