21 Commits

Author SHA1 Message Date
439baa60fb wip: ready for initial test 2023-12-07 04:47:00 +00:00
ca6c2de4dc wip: config 2023-12-07 03:16:37 +00:00
c5e20f7910 wip 2023-12-06 23:04:19 +11:00
dbb703db61 revamp: start simple 2023-12-06 17:01:43 +11:00
4f54db3cbd chore: update golang version and tools-versions 2023-12-06 11:27:51 +11:00
f482eb8631 wip: default writer tested 2023-09-11 13:56:38 +10:00
d406fe698f wip: log 2023-09-11 12:28:53 +10:00
277e8feba1 wip: log 2023-09-11 10:53:21 +10:00
5050a4fdba wip: log 2023-09-09 17:42:39 +10:00
5f7befe02c wip: log 2023-09-09 14:07:49 +10:00
8a480acde7 wip: log 2023-09-06 03:37:43 +10:00
1f25e5249c wip: log 2023-09-05 14:22:36 +10:00
a5a019b28b wip: log 2023-09-05 13:09:53 +10:00
9f7c004105 wip: log 2023-09-05 10:20:49 +10:00
6eada2d348 wip: log 2023-09-04 15:58:41 +10:00
5621312be1 wip: log 2023-09-04 12:49:48 +10:00
badd2e3543 wip: log 2023-09-03 12:11:35 +10:00
91147f073f wip: daemon 2023-09-01 12:29:31 +10:00
eac78ec322 wip: test signal 2023-08-31 08:55:48 +10:00
92f7873f98 wip: process management 2023-08-31 08:05:20 +10:00
9cbdbebee5 wip: initial work 2023-08-28 18:12:31 +10:00
8 changed files with 11 additions and 46 deletions

View File

@@ -1,18 +1,6 @@
{ {
"name": "Golang Dev", "name": "Golang Dev",
"image": "golang-dev:1.21-bookworm-user", "image": "golang-dev:1.21-bookworm-user",
"mounts": [
{
"source": "WingmateGoPath",
"target": "/go",
"type": "volume"
},
{
"source": "WingmateGolangDevHome",
"target": "/home/golang",
"type": "volume"
}
],
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [

3
.gitignore vendored
View File

@@ -1 +1,2 @@
/cmd/wingmate/wingmate /.idea
/wingmate

8
.idea/.gitignore generated vendored
View File

@@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

8
.idea/modules.xml generated
View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/wingmate.iml" filepath="$PROJECT_DIR$/.idea/wingmate.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated
View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

9
.idea/wingmate.iml generated
View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@@ -1 +1 @@
golang 1.21.5 golang 1.21.4

View File

@@ -28,6 +28,14 @@ type CronTimeSpec interface {
Match(uint8) bool Match(uint8) bool
} }
// type Cron interface {
// Minute() CronTimeSpec
// Hour() CronTimeSpec
// DayOfMonth() CronTimeSpec
// Month() CronTimeSpec
// DayOfWeek() CronTimeSpec
// }
type Cron struct { type Cron struct {
minute CronTimeSpec minute CronTimeSpec
hour CronTimeSpec hour CronTimeSpec
@@ -141,7 +149,6 @@ func (c *Cron) TimeToRun(now time.Time) bool {
c.dom.Match(uint8(now.Day())) && c.dom.Match(uint8(now.Day())) &&
c.month.Match(uint8(now.Month())) && c.month.Match(uint8(now.Month())) &&
c.dow.Match(uint8(now.Weekday())) { c.dow.Match(uint8(now.Weekday())) {
c.lastRun = now
return true return true
} }