github.com/alkemics/goflow@v0.2.1/wrappers/types/types.yml (about)

     1  name: Types
     2  package: main
     3  
     4  inputs:
     5    - a
     6    - b
     7    - c: single
     8    - no?
     9  
    10  nodes:
    11    - id: make_slice
    12      type: nodes.UIntSliceMaker
    13  
    14    - id: add_10
    15      type: nodes.UAdd
    16      bind:
    17        a: inputs.a
    18        b: 10
    19  
    20    - id: add
    21      type: nodes.UIntAggregator
    22      bind:
    23        list:
    24          - inputs.a
    25          - inputs.b
    26          - inputs.c
    27          - add_10.sum
    28          - make_slice.list
    29          - numbers.One
    30        reducer: functions.UIntSum
    31  
    32    - id: print
    33      type: nodes.PrinterCtx
    34      bind:
    35        values:
    36          - '"the result should be 28"'
    37          - add.result
    38  
    39    - id: print_pi
    40      type: nodes.Printer
    41      bind:
    42        values:
    43          - '"Pi:"'
    44          - numbers.Pi
    45  
    46    - id: do_not_print
    47      type: nodes.Printer
    48      if:
    49        - inputs.no
    50      bind:
    51        values:
    52          - '"this is not printed"'
    53  
    54  outputs:
    55    add: add.result
    56    add_10: add_10.sum
    57    forwardedInputs:
    58      - inputs.a
    59      - inputs.b
    60      - inputs.c