Исходники и презентации
This commit is contained in:
20
lessons/slices_and_arrays/check_length/main.go
Normal file
20
lessons/slices_and_arrays/check_length/main.go
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user