config

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() *models.Config

func Location

func Location() string

ConfigFolder returns the root path of ModelHelper

func LocationExists

func LocationExists() bool

LocationExists checks if the config folder exists

func NewConfigLoader

func NewConfigLoader() modelhelper.ConfigService

func NewConfigService

func NewConfigService() modelhelper.ConfigService

func NewWithWizard

func NewWithWizard() modelhelper.ConfigService

Initialize builds the configuration

func SetDefaultConnection

func SetDefaultConnection(key string) error

func SetDefaultEditor

func SetDefaultEditor(editor string) error

func SetDeveloper

func SetDeveloper(name string, email string, github string, merge bool) error
	if isDefault {
		cfg.DefaultConnection = key
	}
	return update(cfg)
}

func SetLangDefLocation

func SetLangDefLocation(loc string) error

func SetPort

func SetPort(api int, web int) error

func SetTemplateLocation

func SetTemplateLocation(loc string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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