mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-30 09:45:31 +00:00
Statische Seiten
This commit is contained in:
11
helpers/functions/int.go
Normal file
11
helpers/functions/int.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package functions
|
||||
|
||||
func Add(a, b any) int {
|
||||
val1, ok1 := a.(int)
|
||||
val2, ok2 := b.(int)
|
||||
if !ok1 || !ok2 {
|
||||
return 0
|
||||
}
|
||||
|
||||
return val1 + val2
|
||||
}
|
||||
Reference in New Issue
Block a user