package
Version:
v0.0.0-...-049b6f7
Opens a new window with list of versions in this module.
Published: May 30, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
properties
Golang读取properties文件,根据key返回对应的value。
Features
- 非常方便的文件加载方式,只要传入文件名即可
- 提供Get方法,快速的value获取
Document
func Load(file string) (*properties, error)
type properties
func (p *properties) Get(key string) string
具体使用方式,请参照 properties_test.go
Install
go get github.com/admin100/util/properties
LICENSE
properties is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).
Documentation
¶
Loading the properties file into memory
Source Files
¶
Click to show internal directories.
Click to hide internal directories.