yaml

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

type Serializer struct {
	// path to version.txt
	Path     string
	Filename string
	// contains filtered or unexported fields
}

Serializer implements the Serializer interface

func NewSerializer

func NewSerializer(path string) *Serializer

NewSerializer creates a Serializer

func (*Serializer) Deserialize

func (s *Serializer) Deserialize() (*svermaker.ProjectVersion, error)

Deserialize reads a projectcersion from a yml

func (*Serializer) Exists

func (s *Serializer) Exists() bool

Exists checks if the file exists

func (*Serializer) Serialize

func (s *Serializer) Serialize(p svermaker.ProjectVersion) error

Serialize writes the ProjectVersion to a yml

Jump to

Keyboard shortcuts

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