Skip to content

Commit

Permalink
Lab4_5.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mutil2 authored Dec 28, 2023
1 parent ec6a2fb commit 4e58e08
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion golang/Lab4/Lab4.go → golang/Lab4+Lab5/Lab4_5.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package Lab4
package Lab4_5

import (
"fmt"
"isuct.ru/informatics2022/internal"
"isuct.ru/informatics2022/Lab5"

Check failure on line 6 in golang/Lab4+Lab5/Lab4_5.go

View workflow job for this annotation

GitHub Actions / lint

import "isuct.ru/informatics2022/Lab5" is a program, not an importable package (typecheck)
)

func Lab4() {
Expand All @@ -20,4 +21,11 @@ func Lab4() {

taskBResults := internal.ZadachkamathForValues(a, b, values)
fmt.Println("Результаты TaskB:", taskBResults)
func Lab5() {

Check failure on line 24 in golang/Lab4+Lab5/Lab4_5.go

View workflow job for this annotation

GitHub Actions / lint

expected expression (typecheck)
myDog, err := Lab5.NewDog("Rex", -5, 30.0)

Check failure on line 25 in golang/Lab4+Lab5/Lab4_5.go

View workflow job for this annotation

GitHub Actions / lint

missing ',' in parameter list (typecheck)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(myDog.GetAge())
}
}

0 comments on commit 4e58e08

Please sign in to comment.