rename module to gitea.pena/PenaSide/hlog for better importing

This commit is contained in:
skeris 2024-11-26 01:11:02 +03:00
parent 8f32698150
commit a54c29c002
9 changed files with 26 additions and 5 deletions

0
.gitignore vendored Normal file → Executable file

0
LICENSE Normal file → Executable file

0
README.md Normal file → Executable file

2
demo/events/events.go Normal file → Executable file

@ -1,6 +1,6 @@
package events package events
import "github.com/themakers/hlog" import "gitea.pena/PenaSide/hlog"
type Warn_SampleEvent2 struct { type Warn_SampleEvent2 struct {
Field1 int Field1 int

4
demo/main.go Normal file → Executable file

@ -3,8 +3,8 @@ package main
import ( import (
"math/rand" "math/rand"
"github.com/themakers/hlog" "gitea.pena/PenaSide/hlog"
"github.com/themakers/hlog/demo/events" "gitea.pena/PenaSide/hlog/demo/events"
"go.uber.org/zap" "go.uber.org/zap"
) )

7
go.mod Executable file

@ -0,0 +1,7 @@
module gitea.pena/PenaSide/hlog
go 1.23.2
require go.uber.org/zap v1.27.0
require go.uber.org/multierr v1.10.0 // indirect

14
go.sum Normal file

@ -0,0 +1,14 @@
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/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0
log.go Normal file → Executable file

4
log_test.go Normal file → Executable file

@ -7,8 +7,8 @@ import (
"go.uber.org/zap" "go.uber.org/zap"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"github.com/themakers/hlog" "gitea.pena/PenaSide/hlog"
"github.com/themakers/hlog/demo/events" "gitea.pena/PenaSide/hlog/demo/events"
) )
//> Run with `go test -v -benchmem -bench=. .` //> Run with `go test -v -benchmem -bench=. .`