config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Update this version when you make a breaking change to the config file
	// and want to force users to update their config file
	MIN_SUPPORTED_VERSION string = "0.0.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Read and parse the config file and returns the domain.Config
	Read(configPath string) (*domain.Config, error)

	// Returns the translation engine that will be used
	GetEngine(config *domain.Config) (engine.Service, error)
}

Service responsible to handle the config file

Example:

  • configPath: .gominelang.yaml

func New

func New() Service

Jump to

Keyboard shortcuts

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