Dave Cheney 5/24/2020

Diamond interface composition in Go 1.14

Read Original

This technical article details the overlapping interfaces proposal implemented in Go 1.14, which now permits the embedding of interfaces with overlapping method sets. It explains the change using examples from the io package, demonstrates the resolution of diamond-shaped embedding graphs, and clarifies the compiler version requirements for enabling this feature.

Diamond interface composition in Go 1.14

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week