From c2aa7409cff97fa906250f6ec0f1bdc4b67967b2 Mon Sep 17 00:00:00 2001 From: Kylesoda <249518290+kylesoda@users.noreply.github.com> Date: Tue, 31 Mar 2026 00:29:19 -0500 Subject: [PATCH] Init project --- .gitignore | 30 ++++++++++++++++++++++++++++++ cmd/go_migrate/main.go | 17 +++++++++++++++++ go.mod | 7 +++++++ go.sum | 12 ++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100644 cmd/go_migrate/main.go create mode 100644 go.mod create mode 100644 go.sum diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..32ba812 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Code coverage profiles and other test artifacts +*.out +coverage.* +*.coverprofile +profile.cov + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work +go.work.sum + +# env file +.env + +# Editor/IDE +# .idea/ +# .vscode/ +.temp diff --git a/cmd/go_migrate/main.go b/cmd/go_migrate/main.go new file mode 100644 index 0000000..870f420 --- /dev/null +++ b/cmd/go_migrate/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "time" + + log "github.com/sirupsen/logrus" +) + +func main() { + log.SetFormatter(&log.TextFormatter{ + FullTimestamp: true, + TimestampFormat: time.StampMilli, + }) + + log.Info("Starting migration...") + log.Info("Migration completed successfully!") +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..4fff322 --- /dev/null +++ b/go.mod @@ -0,0 +1,7 @@ +module git.ksdemosapps.com/kylesoda/go-migrate + +go 1.25.7 + +require github.com/sirupsen/logrus v1.9.4 + +require golang.org/x/sys v0.13.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..9e91db8 --- /dev/null +++ b/go.sum @@ -0,0 +1,12 @@ +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w= +github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=