On Thu, Oct 26, 2017 at 12:25 PM Vikram Rawat <vikramrawa...@gmail.com>
wrote:

> ... my problem is that there are no slice of time.Time.

var foo []time.Time // is a slice of time.Time

In general, []T is a slice of T. T can by any named type, local or imported
or it can be a type literal, like in []struct{i int}, which is a slice of
structs with one field i of type int.

-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to