common

package
v0.0.0-...-07c2c16 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidType = "invalid file type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd int64
const (
	CmdExit Cmd = iota
	CmdStop
	CmdStart
)

type File

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

func OpenFile

func OpenFile(filePath string, fileType Type) (*File, error)

func (*File) Close

func (f *File) Close()

func (*File) Parse

func (f *File) Parse(out interface{}) error

type Type

type Type string
const (
	JSON Type = "JSON"
	YML       = "YML"
)

Jump to

Keyboard shortcuts

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