Skip to content

Commit 91f297b

Browse files
author
Vic Shóstak
committed
Fix helpers comments
1 parent 36ec06f commit 91f297b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fallback value.
1717

1818
```go
1919
import (
20-
"github.com/gowebly/helpers"
20+
gowebly "github.com/gowebly/helpers"
2121
)
2222

2323
// Get a value of the environment variable 'BACKEND_PORT'
@@ -35,8 +35,8 @@ Helper to parse list of the given templates to the HTTP handler.
3535
```go
3636
import (
3737
"log/slog"
38-
39-
"github.com/gowebly/helpers"
38+
39+
gowebly "github.com/gowebly/helpers"
4040
)
4141

4242
func handler(w http.ResponseWriter, r *http.Request) {
@@ -69,10 +69,10 @@ Helpers to create a custom handler for serve embed `./static` folder.
6969

7070
```go
7171
import (
72-
"embed"
73-
"net/http"
72+
"embed"
73+
"net/http"
7474

75-
"github.com/gowebly/helpers"
75+
gowebly "github.com/gowebly/helpers"
7676
)
7777

7878
//go:embed static/*

getenv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// Example:
1313
//
1414
// import (
15-
// "github.com/gowebly/helpers"
15+
// gowebly "github.com/gowebly/helpers"
1616
// )
1717
//
1818
// // Get a value of the environment variable 'BACKEND_PORT' or sets it to a fallback value '5000'.

parse_templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
// import (
1818
// "log/slog"
1919
//
20-
// "github.com/gowebly/helpers"
20+
// gowebly "github.com/gowebly/helpers"
2121
// )
2222
//
2323
// func handler(w http.ResponseWriter, r *http.Request) {

static_file_server_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// "embed"
1414
// "net/http"
1515
//
16-
// "github.com/gowebly/helpers"
16+
// gowebly "github.com/gowebly/helpers"
1717
// )
1818
//
1919
// //go:embed static/*

0 commit comments

Comments
 (0)