Skip to main content

LPOP

Syntax

LPOP key

Module

list

Categories

list write fast

Description

Removes and returns the first element of a list.

Examples

Removes and returns the first element of a list:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
element, err := db.LPop("key")