config

package
v0.0.0-...-8b44855 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommands

func NewCommands() *commands

Types

type Command

type Command struct {
	Name string
	Args []string
}

type Config

type Config struct {
	DbUrl           string `json:"db_url"`
	CurrentUserName string `json:"current_user_name"`
}

func ReadConfig

func ReadConfig() (*Config, error)

func (*Config) SetUser

func (c *Config) SetUser(userName string) error

type State

type State struct {
	Config *Config
	DB     *database.Queries
}

Jump to

Keyboard shortcuts

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