Last active
January 13, 2019 18:36
-
-
Save prakashpandey/a990c369aafe43fb626d8c151ce22926 to your computer and use it in GitHub Desktop.
definetype in golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rectangle struct implements Geometry and Color interface | |
type Rectangle struct { | |
length float32 | |
breadth float32 | |
color string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment