mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
12 lines
126 B
Go
12 lines
126 B
Go
package tree
|
|
|
|
type Args []*Arg
|
|
|
|
func (a Args) Last() *Arg {
|
|
if len(a) > 0 {
|
|
return a[len(a)-1]
|
|
} else {
|
|
return nil
|
|
}
|
|
}
|