detached 4c42c1b

#1 refactor(module): use bnema.dev vanity import path

state
merged · 4c42c1b · fast-forward
branch
chore/vanity-path → main
opened
bnema ·
updated

Switch module path and imports from github.com/bnema/* to bnema.dev/*.

4 files · +9 -9
6/10
M README.md +5 -5
@@ -5,13 +5,13 @@ A reusable Go package that wraps [zerolog](https://github.com/rs/zerolog) with c
55 ## Installation
66
77 ```bash
8-go get github.com/bnema/zerowrap
8+go get bnema.dev/zerowrap
99 ```
1010
1111 For OpenTelemetry integration (optional):
1212
1313 ```bash
14-go get github.com/bnema/zerowrap/otel
14+go get bnema.dev/zerowrap/otel
1515 ```
1616
1717 ## Quick Start
@@ -21,7 +21,7 @@ package main
2121
2222 import (
2323 "context"
24- "github.com/bnema/zerowrap"
24+ "bnema.dev/zerowrap"
2525 )
2626
2727 func main() {
@@ -306,8 +306,8 @@ should switch to keyed literals.
306306
307307 ```go
308308 import (
309- "github.com/bnema/zerowrap"
310- "github.com/bnema/zerowrap/otel"
309+ "bnema.dev/zerowrap"
310+ "bnema.dev/zerowrap/otel"
311311 )
312312
313313 // Using global provider
@@ -5,13 +5,13 @@ A reusable Go package that wraps [zerolog](https://github.com/rs/zerolog) with c
5 ## Installation5 ## Installation
6 6
7 ```bash7 ```bash
8-go get github.com/bnema/zerowrap8+go get bnema.dev/zerowrap
9 ```9 ```
10 10
11 For OpenTelemetry integration (optional):11 For OpenTelemetry integration (optional):
12 12
13 ```bash13 ```bash
14-go get github.com/bnema/zerowrap/otel14+go get bnema.dev/zerowrap/otel
15 ```15 ```
16 16
17 ## Quick Start17 ## Quick Start
@@ -21,7 +21,7 @@ package main
21 21
22 import (22 import (
23 "context"23 "context"
24- "github.com/bnema/zerowrap"24+ "bnema.dev/zerowrap"
25 )25 )
26 26
27 func main() {27 func main() {
@@ -306,8 +306,8 @@ should switch to keyed literals.
306 306
307 ```go307 ```go
308 import (308 import (
309- "github.com/bnema/zerowrap"309+ "bnema.dev/zerowrap"
310- "github.com/bnema/zerowrap/otel"310+ "bnema.dev/zerowrap/otel"
311 )311 )
312 312
313 // Using global provider313 // Using global provider
M doc.go +1 -1
@@ -254,7 +254,7 @@
254254 //
255255 // For OpenTelemetry log bridging, use the optional otel sub-package:
256256 //
257-// import "github.com/bnema/zerowrap/otel"
257+// import "bnema.dev/zerowrap/otel"
258258 //
259259 // // Using global provider
260260 // log := zerowrap.New(cfg).Hook(otel.NewHook("my-service"))
@@ -254,7 +254,7 @@
254 //254 //
255 // For OpenTelemetry log bridging, use the optional otel sub-package:255 // For OpenTelemetry log bridging, use the optional otel sub-package:
256 //256 //
257-// import "github.com/bnema/zerowrap/otel"257+// import "bnema.dev/zerowrap/otel"
258 //258 //
259 // // Using global provider259 // // Using global provider
260 // log := zerowrap.New(cfg).Hook(otel.NewHook("my-service"))260 // log := zerowrap.New(cfg).Hook(otel.NewHook("my-service"))
M go.mod +1 -1
@@ -1,4 +1,4 @@
1-module github.com/bnema/zerowrap
1+module bnema.dev/zerowrap
22
33 go 1.27
44
@@ -1,4 +1,4 @@
1-module github.com/bnema/zerowrap1+module bnema.dev/zerowrap
2 2
3 go 1.273 go 1.27
4 4
M otel/doc.go +2 -2
@@ -6,8 +6,8 @@
66 // # Usage
77 //
88 // import (
9-// "github.com/bnema/zerowrap"
10-// "github.com/bnema/zerowrap/otel"
9+// "bnema.dev/zerowrap"
10+// "bnema.dev/zerowrap/otel"
1111 // )
1212 //
1313 // // Create logger with OTel hook
@@ -6,8 +6,8 @@
6 // # Usage6 // # Usage
7 //7 //
8 // import (8 // import (
9-// "github.com/bnema/zerowrap"9+// "bnema.dev/zerowrap"
10-// "github.com/bnema/zerowrap/otel"10+// "bnema.dev/zerowrap/otel"
11 // )11 // )
12 //12 //
13 // // Create logger with OTel hook13 // // Create logger with OTel hook

Comments00 unresolved

    no comments yet.

    Keyboard shortcuts

    Single-key shortcuts are on. ctrl k and esc work whatever this says.

    ctrl k :
    go to a section, branch, tag, file or repository
    ?
    this list
    j k
    move the row cursor down / up
    enter
    open the row under the cursor; on Files, a directory opens or closes in place
    ↑ ↓ ← → home end
    in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
    l h
    on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. On pages with a side panel: into the panel (on a merge request, its files) / back to the content; there j k move between its controls
    g g G
    first / last row
    /
    filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
    b
    switch branch or tag
    g s g f g c g b g m g i g r g a
    tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
    g h
    home
    w
    wide mode: use the whole width of the screen, or not (remembered)
    y
    copy a permalink pinned to the commit; in a file, click a line number to select it, shift-click for a range
    d u x
    diff: split / unified / collapse or expand all
    e E
    diff: the whole file in view / every file, with the lines the hunks hide
    n
    merge request: next note in the diff
    l
    merge request: the list of files (j k move, enter opens, esc back)
    M
    merge request: the merge menu; there 1–3 pick the mode, D deletes the branch, enter merges
    R
    merge request: mark the head read
    esc
    close a dialog, leave a field

    Branches 2

    Tags 9

    ↑↓ moveenter openesc close