package javaproperties

import "github.com/spf13/viper/internal/encoding/javaproperties"

Index

Types

type Codec

type Codec struct {
	KeyDelimiter string

	// Store read properties on the object so that we can write back in order with comments.
	// This will only be used if the configuration read is a properties file.
	// TODO: drop this feature in v2
	// TODO: make use of the global properties object optional
	Properties *properties.Properties
}

Codec implements the encoding.Encoder and encoding.Decoder interfaces for Java properties encoding.

func (*Codec) Decode

func (c *Codec) Decode(b []byte, v map[string]any) error

func (*Codec) Encode

func (c *Codec) Encode(v map[string]any) ([]byte, error)

Source Files

codec.go map_utils.go

Version
v1.18.1
Published
Dec 8, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
3 hours ago

Tools for package owners.