21 lines
312 B
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
|
|
}
|