package hcl

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

Index

Types

type Codec

type Codec struct{}

Codec implements the encoding.Encoder and encoding.Decoder interfaces for HCL encoding. TODO: add printer config to the codec?

func (Codec) Decode

func (Codec) Decode(b []byte, v map[string]interface{}) error

func (Codec) Encode

func (Codec) Encode(v map[string]interface{}) ([]byte, error)

Source Files

codec.go

Version
v1.12.0
Published
May 26, 2022
Platform
js/wasm
Imports
4 packages
Last checked
52 minutes ago

Tools for package owners.