diff --git a/LICENSE b/LICENSE index 2071b23..e192651 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2022 (30.34) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/calendar.go b/calendar.go new file mode 100644 index 0000000..f024e56 --- /dev/null +++ b/calendar.go @@ -0,0 +1,9 @@ +package lllaetu_data + +type Day struct { +} + +func Today() Day { + + return Day{} +} diff --git a/calendar_test.go b/calendar_test.go new file mode 100644 index 0000000..21875a2 --- /dev/null +++ b/calendar_test.go @@ -0,0 +1,15 @@ +package lllaetu_data + +import ( + "fmt" + "reflect" +) +import "testing" + +func TestTodayStruct(t *testing.T) { + today := Today() + s := reflect.ValueOf(&today).Elem() + if fmt.Sprint(s.Type()) != "lllaetu_data.Day" { + t.Error("Bad structure has been got.") + } +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..78c3e35 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module lllaetu-data + +go 1.18