I declare an interface like this:
type TimeIndexedTable interface {
Get(string) ([]float64, error)
Set(string, []float64) error
GetIndex() []time.Time
SetIndex([]time.Time)
ListColumns() []string
}
And then I want to implement a function called Resample
Resample(**UNDERLYING** TimeIndexedTable, interval time.Duration, functionMap map[string]string)(TimeIndexedTable ,error){
//give me a new instance of the UNDERLYING
}
So, I would like to know how to get the UNDERLYING type and initialize an empty instance of it.
I apologize if this question is confusing or has been asked before, but I have looked.