from docs, the basic syntax is
match [expression]:
[pattern](s):
[block]
[pattern](s):
[block]
[pattern](s):
[block]
As far as i know you must use a variable or function for match expression
i.e:
enum { A, B, C}
func test(my_value):
match my_value:
{A:1, ..}:
print("match")
_:
print("not match")