vo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyValue

type AnyValue struct {
	Name  string `json:"name" yaml:"name"`
	Value any    `json:"value" yaml:"value"`
}

func NewAnyValue

func NewAnyValue(value any) AnyValue

func NewNameValue

func NewNameValue(name string, value any) AnyValue

func (AnyValue) Array

func (r AnyValue) Array() [][]string

type AppInfo

type AppInfo struct {
	Description string `json:"description" yaml:"description"`
	Version     string `json:"version" yaml:"version"`
	Commit      string `json:"commit" yaml:"commit"`
	Date        string `json:"date" yaml:"date"`
	Compiler    string `json:"compiler" yaml:"compiler"`
	Platform    string `json:"platform" yaml:"platform"`
}

func NewAppInfo

func NewAppInfo() AppInfo

func (AppInfo) String

func (r AppInfo) String() string

type CmpInfo

type CmpInfo struct {
	Hash1 *HashInfo `json:"hash1"`
	Hash2 *HashInfo `json:"hash2"`
	Equal bool      `json:"equal"`
	Msg   string    `json:"msg"`
}

func NewCmpInfo

func NewCmpInfo(path1, path2 string) CmpInfo

type CmpList

type CmpList []CmpInfo

func (CmpList) Array

func (r CmpList) Array() [][]string

func (CmpList) ArrayDetail

func (r CmpList) ArrayDetail() [][]string

type ErrInfo

type ErrInfo struct {
	Error string
}

func NewErrInfo

func NewErrInfo(err error) *ErrInfo

func (*ErrInfo) Array

func (r *ErrInfo) Array() [][]string

type HashInfo

type HashInfo struct {
	Path  string `json:"path"`
	Size  int64  `json:"size"`
	Hash  string `json:"hash"`
	Error error  `json:"error,omitempty" yaml:"error,omitempty"`
}

type HashList

type HashList []HashInfo

func (HashList) Array

func (r HashList) Array() [][]string

Jump to

Keyboard shortcuts

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