config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstServerProps added in v0.7.0

func ConstServerProps() map[string]string

ConstServerProps returns the constant server properties. This property cannot be overridden by the user.

func DefaultServerProps added in v0.7.0

func DefaultServerProps() map[string]string

DefaultServerProps returns the default server properties.

func ExecuteTemplate added in v0.7.0

func ExecuteTemplate(tmplStr string, data any) (string, error)

ExecuteTemplate parses and executes a template string with the given data.

func GenServerProps

func GenServerProps(userProps map[string]string) (string, error)

GenServerProps generates server.properties content.

func MergeMap added in v0.7.0

func MergeMap(m1, m2 map[string]string) map[string]string

MergeMap merges two maps.

func ParseServerProps added in v0.4.0

func ParseServerProps(r io.Reader) (map[string]string, error)

ParseServerProps parses server.properties from reader.

func ParseServerPropsFromPath added in v0.4.0

func ParseServerPropsFromPath(path string) (_ map[string]string, err error)

ParseServerPropsFromPath parses server.properties from path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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