propertie

package
v0.0.0-...-900d369 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

rwconfig

介绍

读写配置文件 xxx.properties or xxx.ini

  • key=value 格式
    prop := propertie.Init("application.properties")
    fmt.Println(prop.GetProperties("demo.key"))
    prop.SetProperties("demo.key","a1国国1a1国国1a1国国1")
    fmt.Println(prop.GetProperties("demo.key"))
软件架构

golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

type Properties struct {
	// contains filtered or unexported fields
}

func Init

func Init(path string) *Properties

func (*Properties) Close

func (m *Properties) Close()

func (*Properties) GetProperties

func (m *Properties) GetProperties(key string) string

func (*Properties) Is

func (m *Properties) Is(key string) bool

func (*Properties) SetProperties

func (m *Properties) SetProperties(key, value string)

Jump to

Keyboard shortcuts

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