-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dave/dst dependency to latest version (#68)
* Add generics fixture * Upgrade dave/dst and support generics * Remove golang 1.16 and 1.17 from testing matrix * Update README * More README updates * Revert "More README updates" This reverts commit 95d35d4. * Try fixing README again * Update crypto dependency
- Loading branch information
Showing
8 changed files
with
97 additions
and
46 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package main | ||
|
||
func SumIntsOrFloats[K comparable, V int64 | float64](m map[K]V, longArgument1 int, longArgument2 int, longArgument3 int) V { | ||
var s V | ||
for _, v := range m { | ||
s += v | ||
} | ||
return s | ||
} | ||
|
||
func SumIntsOrFloats2[K comparable, V int64 | float64](m map[K]V) V { | ||
var s V | ||
for _, v := range m { | ||
s += v | ||
} | ||
return s | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
func SumIntsOrFloats[K comparable, V int64 | float64]( | ||
m map[K]V, | ||
longArgument1 int, | ||
longArgument2 int, | ||
longArgument3 int, | ||
) V { | ||
var s V | ||
for _, v := range m { | ||
s += v | ||
} | ||
return s | ||
} | ||
|
||
func SumIntsOrFloats2[K comparable, V int64 | float64](m map[K]V) V { | ||
var s V | ||
for _, v := range m { | ||
s += v | ||
} | ||
return s | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ import ( | |
) | ||
|
||
const ( | ||
versionStr = "0.9.0" | ||
versionStr = "0.10.0" | ||
) | ||
|
||
var ( | ||
|