GoLang alternatives for PHP functions
[code] func ArrayShift(s *[]interface{}) interface{} { if len(*s) == 0 { return nil } f := (*s)[0] *s = (*s)[1:] return f } [/code]