{"repo":"petaki/inertia-go","free":true,"listed":false,"github":"https://github.com/petaki/inertia-go","clone":"git clone https://github.com/petaki/inertia-go.git","description":"⏩ A Go adapter for Inertia.js.","language":"Go","stars":318,"topics":["go","golang","inertiajs"],"license":"MIT","category":"dev-tools","readme_excerpt":"Inertia.js Go Adapter An Inertia.js server-side adapter for Go. Visit inertiajs.com to learn more. Installation Install the package using the go get command: Usage 1. Create new instance Or create with embed.FS for root template: 2. Register the middleware 3. Render in handlers Or render with props: 4. Server-side Rendering (Optional) First, enable SSR with the url of the Node server: Or with custom url: Or with the Vite dev server: You can also provide a custom http.Client : For more information, please read the official Server-side Rendering documentation on inertiajs.com. Page Props Name Method(s) Evaluation Full Partial ------ ----------- ------------ ------ --------- Base Share , WithProp , Render Eager ✅ ✅ if requested Optional WithOptionalProp Lazy ❌ ✅ if requested Always WithAlwaysProp Lazy ✅ ✅ always Deferred WithDeferredProp Lazy ❌ deferred ✅ if requested Merge WithMergeProp Lazy ✅ ✅ if requested Deep Merge WithDeepMergeProp Lazy ✅ ✅ if requested Prepend WithPrependProp Lazy ✅ ✅ if requested Scroll WithScrollProp — ✅ metadata ✅ metadata Once WithOnceProp , WithOnce Lazy ✅ ✅ if requested Error WithErrorProp Eager ✅ always ✅ always - WithOnce can be combined with Deferred, Merge, Deep Merge, Prepend, and Optional props. - WithOnceProp and WithOnce props are excluded when listed in the X-Inertia-Except-Once-Props header. - WithScrollProp adds scroll metadata to the page response for infinite scroll support. - WithErrorProp errors are merged with any inline errors map p","default_branch":null,"files":null,"tree":[],"storefront":"/r/petaki","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/petaki/inertia-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}