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
+16.4k CodeIgniter/PHP : Create directory if does not exist example
+8.9k Golang : What is the default port number for connecting to MySQL/MariaDB database ?
+9.7k Golang : Eroding and dilating image with OpenCV example
+6.5k Unix/Linux : How to get own IP address ?
+5.6k Javascript : How to refresh page with JQuery ?
+14.2k Elastic Search : Mapping date format and sort by date
+14.4k Android Studio : Use image as AlertDialog title with custom layout example
+7.4k Golang : Convert source code to assembly language
+4.8k PHP : Extract part of a string starting from the middle
+9.4k Android Studio : Indicate progression with ProgressBar example
+22.7k Golang : Set and Get HTTP request headers example
+10k Golang : Setting variable value with ldflags