All checks were successful
Test Go Action / use-go-action (push) Successful in 7s
17 lines
196 B
Go
17 lines
196 B
Go
package internal
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func Add(a, b int) {
|
|
time.Sleep(time.Second)
|
|
fmt.Println("Sum =", a+b)
|
|
}
|
|
|
|
func Sub(a, b int) {
|
|
time.Sleep(time.Second)
|
|
fmt.Println("Sub =", a-b)
|
|
}
|