go_winter_2024/internal/example.go
Ivan Titov 990e803a14
All checks were successful
Test Go Action / use-go-action (push) Successful in 7s
save
2025-02-10 21:43:38 +03:00

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)
}