package dotenv

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

Index

Types

type Codec

type Codec struct{}

Codec implements the encoding.Encoder and encoding.Decoder interfaces for encoding data containing environment variables (commonly called as dotenv format).

func (Codec) Decode

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

func (Codec) Encode

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

Source Files

codec.go map_utils.go

Version
v1.20.1 (latest)
Published
Mar 26, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
1 day ago

Tools for package owners.