Skip to content

Commit

Permalink
fix audit.yml golang version in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Sarvarov committed Jun 11, 2024
1 parent cf1f657 commit 1245c46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.22

- name: Verify dependencies
run: go mod verify
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.idea
/.idea
node_modules
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ package main

import (
"log"
"http"
"net/http"
"time"

inertia "github.com/romsar/gonertia"
)

func main() {
i, err := inertia.New("./ui/templates/root.html")
i, err := inertia.New("./resources/views/root.html")
if err != nil {
log.Fatal(err)
}
Expand All @@ -63,7 +63,8 @@ func homeHandler(i *inertia.Inertia) http.Handler {
})

if err != nil {
handleServerErr(w, err)
handleServerErr(w, err)
return
}
}

Expand All @@ -84,7 +85,7 @@ Create `root.html` template:

<body>
{{ .inertia }}
<script src="/static/js/app.js"></script>
<script src="/build/app.js"></script>
</body>
</html>
```
Expand Down Expand Up @@ -112,8 +113,8 @@ i, err := inertia.New(
i, err := inertia.New(
/* ... */
inertia.WithVersion("some-version"), // by any string
inertia.WithAssetURL("/static/js/1f0f8sc6.js"), // by asset url
inertia.WithManifestFile("./ui/manifest.json"), // by manifest file
inertia.WithAssetURL("/build/1f0f8sc6.js"), // by asset url
inertia.WithManifestFile("./build/manifest.json"), // by manifest file
)
```

Expand Down Expand Up @@ -268,7 +269,7 @@ func TestHomepage(t *testing.T) {

## Credits

This package is based on [inertiajs/inertia-laravel](https://github.com/inertiajs/inertia-laravel) and uses some parts of [petaki/inertia-go](https://github.com/petaki/inertia-go).
This package is based on [inertiajs/inertia-laravel](https://github.com/inertiajs/inertia-laravel) and uses some ideas of [petaki/inertia-go](https://github.com/petaki/inertia-go).

## License

Expand Down

0 comments on commit 1245c46

Please sign in to comment.