mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-29 05:36:55 +02:00
отредактировано 2 главы
This commit is contained in:
13
part_2/2.3/2.3.1/golang/testing/main.go
Normal file
13
part_2/2.3/2.3.1/golang/testing/main.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
calc "golang/testing/calculator"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(calc.Add(4, 2)) // 6
|
||||
fmt.Println(calc.Sub(23, 12)) // 11
|
||||
fmt.Println(calc.Mul(5, 6)) // 30
|
||||
fmt.Println(calc.Pow2(5)) // 25
|
||||
}
|
||||
Reference in New Issue
Block a user