daily pastebin goal
55%
SHARE
TWEET

[Go] Interface embedding

cwchen Oct 7th, 2017 550 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. type IPoint interface {
  2.     X() float64
  3.     Y() float64
  4.     SetX(float64)
  5.     SetY(float64)
  6. }
  7.  
  8. type IPoint3D interface {
  9.     IPoint
  10.     Z() float64
  11.     SetZ(float64)
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top