yml

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package yml reads a Declaration File in YML format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeclarationYML

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

DeclarationYML handles read/write of a Declaration YML file

func NewDeclarationYML

func NewDeclarationYML(filename string) *DeclarationYML

NewDeclarationYML returns a DeclarationYML object

func (*DeclarationYML) Read

func (declarationYML *DeclarationYML) Read() (*envvars.Declaration, error)

Read returns a Declaration from a yml file

func (*DeclarationYML) Write

func (declarationYML *DeclarationYML) Write(d *envvars.Declaration, overwrite bool) error

Write writes a Declaration object to a yml file. Returns error if the file already exists unless overwrite is true

Jump to

Keyboard shortcuts

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