From 99eea905a5a81edc0cac0fa989db9d8187de9c2e Mon Sep 17 00:00:00 2001 From: a Date: Thu, 3 Nov 2022 10:18:09 -0500 Subject: [PATCH] Rename --- README.md | 44 ++++++++++++++++---------------- cmd/lint/go.mod | 2 +- cmd/lint/lint.go | 10 ++++---- console_test.go | 2 +- diode/diode.go | 2 +- diode/diode_example_test.go | 4 +-- diode/diode_test.go | 6 ++--- encoder_cbor.go | 2 +- encoder_json.go | 2 +- hlog/hlog.go | 6 ++--- hlog/hlog_example_test.go | 4 +-- hlog/hlog_test.go | 4 +-- internal/cbor/examples/genLog.go | 2 +- journald/journald.go | 4 +-- journald/journald_test.go | 4 +-- log.go | 4 +-- log/log.go | 2 +- log/log_example_test.go | 4 +-- log_example_test.go | 2 +- pkgerrors/stacktrace_test.go | 2 +- 20 files changed, 56 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index 606520a..8a8d83e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ opinionated defaults on zerolog # Zero Allocation JSON Logger -[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/git.tuxpa.in/a/zlog) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/rs/zlog/master/LICENSE) [![Build Status](https://travis-ci.org/rs/zlog.svg?branch=master)](https://travis-ci.org/rs/zlog) [![Coverage](http://gocover.io/_badge/git.tuxpa.in/a/zlog)](http://gocover.io/git.tuxpa.in/a/zlog) +[![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/tuxpa.in/a/zlog) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/rs/zlog/master/LICENSE) [![Build Status](https://travis-ci.org/rs/zlog.svg?branch=master)](https://travis-ci.org/rs/zlog) [![Coverage](http://gocover.io/_badge/tuxpa.in/a/zlog)](http://gocover.io/tuxpa.in/a/zlog) The zlog package provides a fast and simple logger dedicated to JSON output. @@ -21,7 +21,7 @@ To keep the code base and the API simple, zlog focuses on efficient structured l ## Who uses zlog -Find out [who uses zlog](https://git.tuxpa.in/a/zlog/wiki/Who-uses-zlog) and add your company / project to the list. +Find out [who uses zlog](https://tuxpa.in/a/zlog/wiki/Who-uses-zlog) and add your company / project to the list. ## Features @@ -40,21 +40,21 @@ Find out [who uses zlog](https://git.tuxpa.in/a/zlog/wiki/Who-uses-zlog) and add ## Installation ```bash -go get -u git.tuxpa.in/a/zlog/log +go get -u tuxpa.in/a/zlog/log ``` ## Getting Started ### Simple Logging Example -For simple logging, import the global logger package **git.tuxpa.in/a/zlog/log** +For simple logging, import the global logger package **tuxpa.in/a/zlog/log** ```go package main import ( - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -77,8 +77,8 @@ func main() { package main import ( - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -108,8 +108,8 @@ func main() { package main import ( - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -145,8 +145,8 @@ package main import ( "flag" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -196,8 +196,8 @@ You may choose to log without a specific level by using the `Log` method. You ma package main import ( - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -221,8 +221,8 @@ package main import ( "errors" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -246,10 +246,10 @@ package main import ( "github.com/pkg/errors" - "git.tuxpa.in/a/zlog/pkgerrors" + "tuxpa.in/a/zlog/pkgerrors" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -293,8 +293,8 @@ package main import ( "errors" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) func main() { @@ -520,7 +520,7 @@ stdlog.Print("hello world") ### Integration with `net/http` -The `git.tuxpa.in/a/zlog/hlog` package provides some helpers to integrate zlog with `http.Handler`. +The `tuxpa.in/a/zlog/hlog` package provides some helpers to integrate zlog with `http.Handler`. In this example we use [alice](https://github.com/justinas/alice) to install logger for better readability. diff --git a/cmd/lint/go.mod b/cmd/lint/go.mod index 15ee45b..8afd127 100644 --- a/cmd/lint/go.mod +++ b/cmd/lint/go.mod @@ -1,4 +1,4 @@ -module git.tuxpa.in/a/zlog/cmd/lint +module tuxpa.in/a/zlog/cmd/lint go 1.15 diff --git a/cmd/lint/lint.go b/cmd/lint/lint.go index 720c85f..d998c78 100644 --- a/cmd/lint/lint.go +++ b/cmd/lint/lint.go @@ -30,7 +30,7 @@ func init() { flag.Parse() // add zlog to recursively ignored packages - recursivelyIgnoredPkgs = append(recursivelyIgnoredPkgs, "git.tuxpa.in/a/zlog") + recursivelyIgnoredPkgs = append(recursivelyIgnoredPkgs, "tuxpa.in/a/zlog") args := flag.Args() if len(args) != 1 { fmt.Fprintln(os.Stderr, "you must provide exactly one package path") @@ -49,14 +49,14 @@ func main() { os.Exit(1) } - // get the git.tuxpa.in/a/zlog.Event type + // get the tuxpa.in/a/zlog.Event type event := getEvent(p) if event == nil { - fmt.Fprintln(os.Stderr, "Error: git.tuxpa.in/a/zlog.Event declaration not found, maybe zlog is not imported in the scanned package?") + fmt.Fprintln(os.Stderr, "Error: tuxpa.in/a/zlog.Event declaration not found, maybe zlog is not imported in the scanned package?") os.Exit(1) } - // get all selections (function calls) with the git.tuxpa.in/a/zlog.Event (or pointer) receiver + // get all selections (function calls) with the tuxpa.in/a/zlog.Event (or pointer) receiver selections := getSelectionsWithReceiverType(p, event) // print the violations (if any) @@ -80,7 +80,7 @@ func main() { func getEvent(p *loader.Program) types.Type { for _, pkg := range p.AllPackages { - if strings.HasSuffix(pkg.Pkg.Path(), "git.tuxpa.in/a/zlog") { + if strings.HasSuffix(pkg.Pkg.Path(), "tuxpa.in/a/zlog") { for _, d := range pkg.Defs { if d != nil && d.Name() == "Event" { return d.Type() diff --git a/console_test.go b/console_test.go index 06af153..7d52c66 100644 --- a/console_test.go +++ b/console_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "git.tuxpa.in/a/zlog" + "tuxpa.in/a/zlog" ) func ExampleConsoleWriter() { diff --git a/diode/diode.go b/diode/diode.go index 3ce6b93..3c047a4 100644 --- a/diode/diode.go +++ b/diode/diode.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "git.tuxpa.in/a/zlog/diode/internal/diodes" + "tuxpa.in/a/zlog/diode/internal/diodes" ) var bufPool = &sync.Pool{ diff --git a/diode/diode_example_test.go b/diode/diode_example_test.go index 548270d..8020220 100644 --- a/diode/diode_example_test.go +++ b/diode/diode_example_test.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/diode" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/diode" ) func ExampleNewWriter() { diff --git a/diode/diode_test.go b/diode/diode_test.go index afadbd5..36afbf9 100644 --- a/diode/diode_test.go +++ b/diode/diode_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/diode" - "git.tuxpa.in/a/zlog/internal/cbor" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/diode" + "tuxpa.in/a/zlog/internal/cbor" ) func TestNewWriter(t *testing.T) { diff --git a/encoder_cbor.go b/encoder_cbor.go index ee6e49f..4c5d909 100644 --- a/encoder_cbor.go +++ b/encoder_cbor.go @@ -5,7 +5,7 @@ package zlog // This file contains bindings to do binary encoding. import ( - "git.tuxpa.in/a/zlog/internal/cbor" + "tuxpa.in/a/zlog/internal/cbor" ) var ( diff --git a/encoder_json.go b/encoder_json.go index 4c2ae05..0750f06 100644 --- a/encoder_json.go +++ b/encoder_json.go @@ -6,7 +6,7 @@ package zlog // JSON encoded byte stream. import ( - "git.tuxpa.in/a/zlog/internal/json" + "tuxpa.in/a/zlog/internal/json" ) var ( diff --git a/hlog/hlog.go b/hlog/hlog.go index 577784d..e91b01f 100644 --- a/hlog/hlog.go +++ b/hlog/hlog.go @@ -7,9 +7,9 @@ import ( "time" "github.com/rs/xid" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/hlog/internal/mutil" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/hlog/internal/mutil" + "tuxpa.in/a/zlog/log" ) // FromRequest gets the logger in the request's context. diff --git a/hlog/hlog_example_test.go b/hlog/hlog_example_test.go index 396b466..1f69de1 100644 --- a/hlog/hlog_example_test.go +++ b/hlog/hlog_example_test.go @@ -9,8 +9,8 @@ import ( "net/http/httptest" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/hlog" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/hlog" ) // fake alice to avoid dep diff --git a/hlog/hlog_test.go b/hlog/hlog_test.go index 2accf44..9c52417 100644 --- a/hlog/hlog_test.go +++ b/hlog/hlog_test.go @@ -14,8 +14,8 @@ import ( "testing" "github.com/rs/xid" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/internal/cbor" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/internal/cbor" ) func decodeIfBinary(out *bytes.Buffer) string { diff --git a/internal/cbor/examples/genLog.go b/internal/cbor/examples/genLog.go index c908826..2fd3328 100644 --- a/internal/cbor/examples/genLog.go +++ b/internal/cbor/examples/genLog.go @@ -8,7 +8,7 @@ import ( "os" "time" - "git.tuxpa.in/a/zlog" + "tuxpa.in/a/zlog" ) func writeLog(fname string, count int, useCompress bool) { diff --git a/journald/journald.go b/journald/journald.go index 0b15dda..4ed87ad 100644 --- a/journald/journald.go +++ b/journald/journald.go @@ -25,8 +25,8 @@ import ( "strings" "github.com/coreos/go-systemd/v22/journal" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/internal/cbor" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/internal/cbor" ) const defaultJournalDPrio = journal.PriNotice diff --git a/journald/journald_test.go b/journald/journald_test.go index 17c6941..9cf72c5 100644 --- a/journald/journald_test.go +++ b/journald/journald_test.go @@ -7,8 +7,8 @@ import ( "io" "testing" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/journald" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/journald" ) func ExampleNewJournalDWriter() { diff --git a/log.go b/log.go index 5830e9e..392a90d 100644 --- a/log.go +++ b/log.go @@ -2,12 +2,12 @@ // // A global Logger can be use for simple logging: // -// import "git.tuxpa.in/a/zlog/log" +// import "tuxpa.in/a/zlog/log" // // log.Info().Msg("hello world") // // Output: {"time":1494567715,"level":"info","message":"hello world"} // -// NOTE: To import the global logger, import the "log" subpackage "git.tuxpa.in/a/zlog/log". +// NOTE: To import the global logger, import the "log" subpackage "tuxpa.in/a/zlog/log". // // Fields can be added to log messages: // diff --git a/log/log.go b/log/log.go index 05ff921..17ed5ef 100644 --- a/log/log.go +++ b/log/log.go @@ -8,7 +8,7 @@ import ( "os" "time" - "git.tuxpa.in/a/zlog" + "tuxpa.in/a/zlog" ) // Logger is the global logger. diff --git a/log/log_example_test.go b/log/log_example_test.go index 1b839ed..cce3b01 100644 --- a/log/log_example_test.go +++ b/log/log_example_test.go @@ -9,8 +9,8 @@ import ( "os" "time" - "git.tuxpa.in/a/zlog" - "git.tuxpa.in/a/zlog/log" + "tuxpa.in/a/zlog" + "tuxpa.in/a/zlog/log" ) // setup would normally be an init() function, however, there seems diff --git a/log_example_test.go b/log_example_test.go index 0da39c9..420d38b 100644 --- a/log_example_test.go +++ b/log_example_test.go @@ -10,7 +10,7 @@ import ( "os" "time" - "git.tuxpa.in/a/zlog" + "tuxpa.in/a/zlog" ) func ExampleNew() { diff --git a/pkgerrors/stacktrace_test.go b/pkgerrors/stacktrace_test.go index 9e43959..6d20976 100644 --- a/pkgerrors/stacktrace_test.go +++ b/pkgerrors/stacktrace_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/pkg/errors" - "git.tuxpa.in/a/zlog" + "tuxpa.in/a/zlog" ) func TestLogStack(t *testing.T) {