Moved http related functions to their own file; added 'sum.go' for a second endpoint.
This commit is contained in:
6
functions/sum.go
Normal file
6
functions/sum.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package functions
|
||||
|
||||
func sum(first int, second int) (result int) {
|
||||
result = first + second
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user