Compare commits

...

2 commits

Author SHA1 Message Date
Arnas Udovicius
e0d9ccb683 add idea to gitignore 2022-06-01 14:19:15 +03:00
Arnas Udovicius
0807a646c0 Init 2022-06-01 14:17:56 +03:00
5 changed files with 29 additions and 1 deletions

1
.gitignore vendored
View file

@ -21,3 +21,4 @@
# Go workspace file # Go workspace file
go.work go.work
.idea

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) <year> <copyright holders> Copyright (c) 2022 (30.34) <zordsdavini@arns.lt>
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: 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:

9
calendar.go Normal file
View file

@ -0,0 +1,9 @@
package lllaetu_data
type Day struct {
}
func Today() Day {
return Day{}
}

15
calendar_test.go Normal file
View file

@ -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.")
}
}

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module lllaetu-data
go 1.18