utils

package
v0.0.0-...-83f3b7c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportCSV

func ExportCSV(input []models.PostHistory) ([]byte, error)

func GetConfig

func GetConfig(key string) string

func LoadEnvFile

func LoadEnvFile()

func MainLogger

func MainLogger() *slog.Logger

func NewLogger

func NewLogger(category string) *slog.Logger

Types

type AppSettings

type AppSettings struct {
	ProvincialCenters []ProvincialCenter `json:"Provincial-Centers"`
}

type ProvincialCenter

type ProvincialCenter struct {
	Name string `json:"name"`
}

func LoadAppSettingsFile

func LoadAppSettingsFile() ([]ProvincialCenter, error)

Jump to

Keyboard shortcuts

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