properties

package
v0.0.0-...-049b6f7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(file string) (*properties, error)

Loading the properties file into memory

Types

This section is empty.

Jump to

Keyboard shortcuts

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