mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
First functional version of a blackboard and a blackboard based obicount
This commit is contained in:
17
pkg/obiblackboard/display_task.go
Normal file
17
pkg/obiblackboard/display_task.go
Normal file
@ -0,0 +1,17 @@
|
||||
package obiblackboard
|
||||
|
||||
import "fmt"
|
||||
|
||||
func DisplayTask(bb *Blackboard, task *Task) *Task {
|
||||
if task == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
fmt.Printf("Task: %s:\n%v\n\n", task.Role, task.Body)
|
||||
|
||||
return task
|
||||
}
|
||||
|
||||
func (runner DoTask) Display() DoTask {
|
||||
return runner.CombineWith(DisplayTask)
|
||||
}
|
Reference in New Issue
Block a user