Golang container/list.List.Back() function example
package container/list
Back returns the last element of list l or nil.
Golang container/list.List.Back() function usage example
package main
import (
"container/list"
"fmt"
)
func main() {
alist := list.New()
alist.PushBack("a")
alist.PushBack("b")
alist.PushBack("c")
e := alist.Back()
fmt.Println(e.Value)
}
Output :
c
Reference :
Advertisement
Something interesting
Tutorials
+4.7k Chrome : How to block socketloop.com links in Google SERP?
+17.6k Golang : Parse date string and convert to dd-mm-yyyy format
+8.3k Swift : Convert (cast) Character to Integer?
+15k Golang : How do I get the local IP (non-loopback) address ?
+5.1k Golang : Check if a word is countable or not
+10.4k Golang : Simple Jawi(Yawi) to Rumi(Latin/Romanize) converter
+15.2k JavaScript/JQuery : Detect or intercept enter key pressed example
+9.4k Golang : Play .WAV file from command line
+34.1k Golang : Create x509 certificate, private and public keys
+14k Golang : Fix cannot use buffer (type bytes.Buffer) as type io.Writer(Write method has pointer receiver) error
+22.2k Golang : Securing password with salt
+7.6k Golang : Convert(cast) io.Reader type to string