propsReader

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

README

description: a properties management library written in golang

Prerequisite: install golang 1.13 or later

usage

Use go get to install SDK

$ go get -u github.com/guoapeng/props

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home added in v1.1.0

func Home() (string, error)

Types

type AppConfigFactory added in v1.1.0

type AppConfigFactory struct {
	SystemDir  string
	HomeDir    string
	OsUtils    utils.OsUtils
	BufioUtils utils.BufioUtils
	// contains filtered or unexported fields
}

func NewFactory added in v1.1.0

func NewFactory(appName string, propertyFile string) *AppConfigFactory

func (*AppConfigFactory) New added in v1.1.0

func (factory *AppConfigFactory) New() (AppConfigProperties, error)

func (*AppConfigFactory) ReadPropertiesFile added in v1.1.0

func (factory *AppConfigFactory) ReadPropertiesFile(filename string) (map[string]string, error)

type AppConfigProperties

type AppConfigProperties interface {
	Get(key string) string
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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