From 4e58e086078cf0d93f0406b429bb927a6a9c9587 Mon Sep 17 00:00:00 2001 From: mutil2 <146696499+mutil2@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:06:30 +0300 Subject: [PATCH] Lab4_5.go --- golang/{Lab4/Lab4.go => Lab4+Lab5/Lab4_5.go} | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) rename golang/{Lab4/Lab4.go => Lab4+Lab5/Lab4_5.go} (72%) diff --git a/golang/Lab4/Lab4.go b/golang/Lab4+Lab5/Lab4_5.go similarity index 72% rename from golang/Lab4/Lab4.go rename to golang/Lab4+Lab5/Lab4_5.go index 4aacadde..65f56b11 100644 --- a/golang/Lab4/Lab4.go +++ b/golang/Lab4+Lab5/Lab4_5.go @@ -1,8 +1,9 @@ -package Lab4 +package Lab4_5 import ( "fmt" "isuct.ru/informatics2022/internal" + "isuct.ru/informatics2022/Lab5" ) func Lab4() { @@ -20,4 +21,11 @@ func Lab4() { taskBResults := internal.ZadachkamathForValues(a, b, values) fmt.Println("Результаты TaskB:", taskBResults) +func Lab5() { + myDog, err := Lab5.NewDog("Rex", -5, 30.0) + if err != nil { + fmt.Println(err) + } else { + fmt.Println(myDog.GetAge()) + } }