cachedir

package
v0.0.0-...-faefad5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable()

Disable cache

func GetProjectMetaData

func GetProjectMetaData(project ProjectRegistered, keystring string)

GetProjectMetaData Get metadata for project

func Init

func Init()

Init Cache

func RegisterProject

func RegisterProject(name, path string)

RegisterProject register project in register

func SetProjectMetaData

func SetProjectMetaData(project ProjectRegistered, key, value string)

SetProjectMetaData set metadata for project

Types

type ProjectRegistered

type ProjectRegistered struct {
	Name string
	Path string
}

ProjectRegistered registered project

func ProjectsSort

func ProjectsSort(projects []ProjectRegistered) []ProjectRegistered

ProjectsSort sort projects on alphabet

func RegisteredProjects

func RegisteredProjects() []ProjectRegistered

RegisteredProjects registered projects

type ProjectSorter

type ProjectSorter []ProjectRegistered

ProjectSorter sorter object

func (ProjectSorter) Len

func (a ProjectSorter) Len() int

func (ProjectSorter) Less

func (a ProjectSorter) Less(i, j int) bool

func (ProjectSorter) Swap

func (a ProjectSorter) Swap(i, j int)

type Projects

type Projects struct {
	Project []ProjectRegistered
}

Projects Registered projects

Jump to

Keyboard shortcuts

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