array_pop

array_pop

[code]
func ArrayPop(s *[]interface{}) interface{} {
	if len(*s) == 0 {
		return nil
	}
	ep := len(*s) - 1

	e := (*s)[ep]

	*s = (*s)[:ep]

	return e
}
[/code]