github.com/goplus/yap@v0.8.1/ytest/demo/match/complex/complex_yapt.gox (about)

     1  d := Var(string)
     2  
     3  match {
     4      "c": {"d": d},
     5  }, {
     6      "a": 1,
     7      "b": 3.14,
     8      "c": {"d": "hello", "e": "world"},
     9      "f": 1,
    10  }
    11  
    12  echo d
    13  match d, "hello"