/* formulate Task-Type from other info in Packet */ func taskTypeFromPacket(packet *goshare.Packet) (task_type string) { if packet.ValType == "" { packet.ValType = "default" } task_type = fmt.Sprintf("%s-%s", packet.KeyType, packet.ValType) if packet.ParentNS != "" { task_type = fmt.Sprintf("%s-parentNS", task_type) } return task_type }