config

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 3 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

Overview

Package config binds the db2tool settings files, tools/database/ generator-settings.json and ptr-generator-settings.json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Settings Settings `json:"Settings"`
	// TargetDirectory does double duty (listfile-key prefix AND output dir);
	// the FDID/listfile use must always see the raw value, never a
	// filesystem-resolved path.
	TargetDirectory        string   `json:"TargetDirectory"`
	GameTablesOutDirectory string   `json:"GameTablesOutDirectory"`
	GameTables             []string `json:"GameTables"`
	Tables                 []string `json:"Tables"`
}

func Load

func Load(path string) (*File, error)

type Settings

type Settings struct {
	Product string `json:"Product"`
	BaseDir string `json:"BaseDir"`
}

Settings is the settings file's "Settings" section: which product to extract and the install to read it from.

Jump to

Keyboard shortcuts

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