Documentation ¶
Index ¶
- Variables
- func ClearAll(cxt Config) string
- func Color(code int, text string) string
- func CreateItem(cxt Config, text string)
- func Decode(encoded string) string
- func DeleteItem(cxt Config) string
- func Encode(plaintext string) string
- func ExpandPath(path string) string
- func FileDelete(file string)
- func FileExists(fileName string) bool
- func FileRead(file string) []byte
- func FileSave(file string, json_text []byte)
- func HashItems(ctx Config) string
- func Host(config Config)
- func ListItems(ctx Config) string
- func PeekItem(ctx Config) string
- func PopItem(ctx Config) string
- func ReadFromStandardIn() string
- func ReadItem(cxt Config) string
- func RemoveOld(cxt Config, limit int)
- func RotateUp(cxt Config) string
- func TimeFrezer(then int64)
- func Time_now_unix() int64
- func UpdateItem(cxt Config, text string) string
- type Config
- type Item
- type Stacker
- func (data *Stacker) Clear()
- func (data Stacker) Peek() Item
- func (data *Stacker) Pop() Item
- func (data *Stacker) PopQueue() Item
- func (data *Stacker) Push(item Item)
- func (data *Stacker) Replace(item Item) Item
- func (data *Stacker) RotateUp()
- func (data *Stacker) Swap()
- func (data Stacker) ToJson() []byte
- type WebEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var BASE64 = "application/base64"
View Source
var TEXT = "text/plain"
Functions ¶
func FileDelete ¶
func FileDelete(file string)
Types ¶
type Config ¶
func (Config) UserHomeDir ¶
type Item ¶
One node in the Structure, has a time stamp for judging how long item is been stored.
func MakeEncodedItem ¶
type Stacker ¶
Stacker is the entire data structure for the file system, it contains a list of Items
Click to show internal directories.
Click to hide internal directories.