Skip to main content

RPOP

Syntax

LPOP key

Module

list

Categories

list write fast

Description

Removes and returns the last element of a list.

Examples

Removes and returns the last element of a list:

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