14 lines
272 B
Go
14 lines
272 B
Go
package main
|
|
import "fmt"
|
|
func group(m interface{}) error {
|
|
|
|
data, ok := m.(map[string]interface{})
|
|
if !ok {
|
|
return fmt.Errorf("expected map[string]interface{}, got %T", m)
|
|
}
|
|
|
|
fmt.Printf("[GROUP] name : %s - state: %s\n", data["name"], data["state"])
|
|
|
|
return nil
|
|
}
|