internal

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package internal is generated by github.com/omeid/go-resources

Index

Constants

This section is empty.

Variables

View Source
var (
	// Path to the top git Directory. This variable does NOT contain the path
	// to the `.git` directory, it contains the path to the Root directory
	// of the project – which contains the `.git` directory.
	GitPath string

	// Path to the current working directory
	Cwd string
)
View Source
var DefaultConfig string

Functions

func CheckUpdate added in v1.1.2

func CheckUpdate(version, dataURL string) bool

CheckUpdate will check if there is a new update available. If so it will return 'true'.

func RegisterAll

func RegisterAll()

RegisterAll() registers all (defined) Changelog Entry Types

Types

type EntryTypes

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

EntryTypes contains all available Entry Types

var EntryT EntryTypes = EntryTypes{}

func (*EntryTypes) DeRegisterEntryType

func (e *EntryTypes) DeRegisterEntryType(et *entry.ChangeEntry) error

func (*EntryTypes) ListAvailableTypes

func (e *EntryTypes) ListAvailableTypes() []*entry.ChangeEntry

ListAvailableTypes returns a list of all available Entry Types

func (*EntryTypes) RegisterEntryType

func (e *EntryTypes) RegisterEntryType(et *entry.ChangeEntry) error

func (*EntryTypes) SearchEntryType

func (e *EntryTypes) SearchEntryType(se *SEntryType) (*entry.ChangeEntry, error)

type SEntryType

type SEntryType struct {
	ShortTypeName   string
	TypeDescription string // The Description is only to document the Type better
	TypeID          int    // This Type ID must be unique
}

SEntryType is only used to search Entry Types

Directories

Path Synopsis
Package log contains the initialized and configured logrus logger
Package log contains the initialized and configured logrus logger

Jump to

Keyboard shortcuts

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