values

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package values contains simple wrapper classes for value types, such as MD5 strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFormat

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

FileFormat is the format of a file, limited to 100 bytes.

func NewFileFormat

func NewFileFormat(name string) (*FileFormat, error)

NewFileFormat creates a new filename.

func (*FileFormat) GetFileFormat

func (fn *FileFormat) GetFileFormat() string

GetFileFormat returns the file name.

type FileName

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

FileName is the name of a file, limited to 256 bytes.

func NewFileName

func NewFileName(name string) (*FileName, error)

NewFileName creates a new filename.

func (*FileName) GetFileName

func (fn *FileName) GetFileName() string

GetFileName returns the file name.

type IllegalInputError

type IllegalInputError string

IllegalInputError denotes that some input was illegal

func NewIllegalInputError

func NewIllegalInputError(err string) *IllegalInputError

NewIllegalInputError creates a new IllegalInputError.

func (*IllegalInputError) Error

func (e *IllegalInputError) Error() string

type MD5

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

MD5 contains a valid MD5 string.

func NewMD5

func NewMD5(md5 string) (*MD5, error)

NewMD5 creates a new MD5.

func (*MD5) GetMD5

func (md5 *MD5) GetMD5() string

GetMD5 returns the MD5 string.

Jump to

Keyboard shortcuts

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