Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Schedule 1 Config Parser

Table of Contents


About

A small Go tool that lets you override parts of a JSON config using environment variable. This app assumes the config file is located at UserData/server_config.json


Valid Variables

FieldEnv VarType
maxPlayersMAX_PLAYERSint
tcpConsolePortTCP_CONSOLE_PORTint
serverPortSERVER_PORTint
serverNameSERVER_NAMEstring
serverDescriptionSERVER_DESCRIPTIONstring
tcpConsolePasswordTCP_CONSOLE_PASSWORDstring
serverPasswordSERVER_PASSWORDstring
motdMessageMOTDstring
welcomeMessageWELCOME_MESSAGEstring
saveGamePathSAVE_LOCATIONstring
tcpConsoleEnabledTCP_CONSOLE_ENABLEDbool
tcpConsoleRequirePasswordTCP_CONSOLE_PASSWORD_REQUIREDbool

Building

To Build this Go app, you will need to set the correct OS and CPU Architecture. This can be done in Windows with the following commands:

set GOOS=linux
set GOARCH=amd64

Then you can build the app with:

go build -o config_parser main.go

Issues

If you encounter any issues or have suggestions for improvement, please create a new issue.


Contributing

We welcome contributions to this project! If you're interested in contributing, please fork the repository, make your changes, and submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages