Get
should return a value RVV-A0006 76// indices in series starting at the length of totalSeries.Values. If the number of values
77// in totalSeries is greater than the number of values in series, then math.NaN() needs
78// to be appended to series until its values have the same length as totalSeries.Values
79func getPercentages(series, totalSeries *types.MetricData) { 80 // If there are more series values than totalSeries values, set series value to math.NaN() for those indices
81 if len(series.Values) > len(totalSeries.Values) {
82 for i := 0; i < len(totalSeries.Values); i++ {
Typically, functions with names prefixed with Get are supposed to return a value.
func GetData(n int) {
fmt.Println(10 - n)
}
func GetData(n int) int {
fmt.Println(10 - n)
return 10 - n
}