alef 0.115.6

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package sample

import (
    "encoding/json"
    "os"
    "testing"
)

{{ declarations }}

func TestEnumPayload(t *testing.T) {
    var result Reply
    if err := json.Unmarshal([]byte(os.Getenv("ALEF_PROBE_INPUT")), &result); err != nil { t.Fatal(err) }
{{ assertions }}
}