1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-23 21:34:47 +02:00
Files
go_basics/part_3/3.1/3.go
2025-06-04 18:38:52 +03:00

18 lines
320 B
Go

package main
import "fmt"
type employee struct {
name string
departmentName string
age uint8
position string
}
func main() {
emp3 := employee{"Alex", "R&D", 25, "Assistant"} // ok
// emp3 := employee{"Alex", "R&D"} – ошибка!!!
fmt.Println(emp3) // {Alex R&D 25 Assistant}
}