Files
deep_go/lessons/slices_and_arrays/check_length/main.go

21 lines
312 B
Go

package main
// Need to show solution
func handleOperations(id string) {
operations := getOperations(id)
if operations == nil {
// handling...
}
}
func getOperations(id string) []float32 {
opearations := []float32{}
if id == "" {
return opearations
}
// adding operations...
return opearations
}