Created
May 15, 2022 15:29
-
-
Save sausheong/e2b47f825af8290c134005af660dc964 to your computer and use it in GitHub Desktop.
generics
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
| func AddInt(a, b int) int { | |
| return a + b | |
| } | |
| func AddFloat(a, b float64) float64 { | |
| return a + b | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment