2 ms·
You also want to support having the same type on both sides: var foo interface { struct { A string } | struct { B string } } Eg in Rust that w
by eru 2y ago
You also want to support having the same type on both sides:
var foo interface {
struct { A string } | struct { B string }
}
Eg in Rust that would be 'Result<String, String>', where your success happens to be a String and your errors happens to be a String error message.