config

package
v0.0.0-...-90cea4e Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Configuration package is used to read the configuration file config.json which stores the server port for current implementation

{
    "ServerPort": ":8081"
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ServerPort string
}

Configuration Stores the main configuration for the application

func ReadConfig

func ReadConfig(fileName string) (Configuration, error)

ReadConfig will read the configuration json file to read the parameters which will be passed in the config file

Jump to

Keyboard shortcuts

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