2 parents 8388eae + 7ea0358 commit 8e1652cCopy full SHA for 8e1652c
1 file changed
internal/exercises/solutions/19_structs/structs.go
@@ -0,0 +1,10 @@
1
+package structs
2
+
3
+type Person struct {
4
+ Name string
5
+ Age int
6
+}
7
8
+func NewPerson(name string, age int) Person {
9
+ return Person{Name: name, Age: age}
10
0 commit comments