Comments (3)
Hey @zepnex
Can you share some code? And the request you're trying to make?
Two things to try based on what you said:
- Are you using functions or methods? Bud expects methods (e.g.
func (c *Controller) Index() {}
) - Or do you specifically mean it's not routing with the trailing slash
/
?
from bud.
Hey @matthewmueller
Sorry my previous post is missing a significant information 😅
I dont have any specific code right now. But what i basically mean is that i want to have a method in my posts/controller.go like func (c *Controller) Index() {}
Which works like example.com/posts/:id but with a string instead.
When I search for example.com/posts/Filter-Coffee its should server me with the content of the Story "Filter-Coffee", when example.com/posts/Go-Bud then with the content of "Go-Bud".
But they all should be handled over one method.
And I am using methods sorry for the confusion 😅
from bud.
Hi its me again 😅
It's a little bit awkward to admit, but the problem I described is not really a problem :D
Basically what i searched for was the Show() methode. I don't know why but in my world this methode was only working with integers :D. But I know that I can also use it for string etc.
Sorry for the unnecessary issue 😅
from bud.
Related Issues (20)
- generated app directory fails linting with golangci-lint HOT 1
- feature idea: detect git short version hash during build and embed into binary HOT 2
- feature suggestion: `bud run` should launch browser (maybe with a flag to enable?) HOT 1
- Error during cURL Installation (Mac) HOT 5
- How to integrate svelte libraries into bud HOT 1
- Rendering HTML from Svelte SSR HOT 1
- invalid: unknown revision since 0.2.6 HOT 2
- Improve bud create logging HOT 2
- How to change default id:int to name:string in generated url path? HOT 1
- How to cross compile linux app binary in my macos machine? HOT 3
- bud run fails right after adding controller following video HOT 18
- Memory Profiling a Bud service HOT 5
- Support for FreeBSD HOT 1
- Ship statically linked binaries? HOT 1
- undefined: sqlite3.Error issue HOT 5
- Middleware support? HOT 1
- Dev server breaks as soon as I generate a new controller HOT 2
- Issue with afs on bud run HOT 1
- Add support for skeleton UI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bud.