dotenc

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Node map[string]interface{} `toml:"node"`
	Edge map[string]interface{} `toml:"edge"`
}

Config is configuration class

func DecodeConfig

func DecodeConfig(path string) (*Config, error)

Decode returns Config instance from stream

type Ctx

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

Ctx is context class for parsing

func New

func New(conf string) (*Ctx, error)

New returns new Cxt instance

func (*Ctx) ImportDeps

func (ctx *Ctx) ImportDeps(deps ...*Dep) *Ctx

ImportDeps method makes graph data

func (*Ctx) String

func (ctx *Ctx) String() string

func (*Ctx) Write

func (ctx *Ctx) Write(w io.Writer)

Write method writes to io.Writer

type Dep

type Dep struct {
	From string
	To   string
}

Deps is dependency graph for DOT language

func NewDep

func NewDep(from, to string) *Dep

Jump to

Keyboard shortcuts

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