mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-29 05:36:55 +02:00
отредактировано 2 главы
This commit is contained in:
19
part_2/2.2/2.2.8/golang/first/main.go
Normal file
19
part_2/2.2/2.2.8/golang/first/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
f "fmt"
|
||||
pack "golang/first/another_package"
|
||||
u "golang/first/utils"
|
||||
|
||||
"golang/second"
|
||||
|
||||
id "github.com/google/uuid"
|
||||
)
|
||||
|
||||
func main() {
|
||||
firstUUID := id.New()
|
||||
f.Println(u.ReplaceSymbols(firstUUID, "-", "")) // 8912acef6d3d40aa94f21333faa1c679
|
||||
f.Println(pack.Add(4, 7)) // 11
|
||||
f.Println(second.AddInt(3, 5)) // 8
|
||||
f.Println(second.DivFloat(54.48, 3.66)) // 14.885245901639342
|
||||
}
|
||||
Reference in New Issue
Block a user