From c95bafd34fbb51779d13da1aab0f2026c9f0c4fc Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:26:32 +0100 Subject: [PATCH] forgot navigate --- README.md | 2 +- tiramisu.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ecd4db..4833a3f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Build modern, cross-platform desktop apps in HTML + Go from one codebase. It use - ⚡**Fast development**: Use *ANY* web framework for your UI. Tiramisu handles all the magic of making it work, for you. ## Installation -`go install git.iwakura.rip/grng/tiramisu` +`go get -u git.iwakura.rip/grng/tiramisu` ## Example diff --git a/tiramisu.go b/tiramisu.go index 7d46ece..e51a7b1 100644 --- a/tiramisu.go +++ b/tiramisu.go @@ -97,6 +97,12 @@ func (t *Tiramisu) HTML(html string) { t.loadGoRuntime() } +func (t *Tiramisu) Navigate(url string) { + t.w.Navigate(url) + t.loadJSRuntime() + t.loadGoRuntime() +} + //go:embed runtime/out/* var runtimeFS embed.FS