Hacker Newsnew | past | comments | ask | show | jobs | submit | TDiblik's commentslogin

Hey, I would like to get some feedback on the library I'm developing for fiber v3. It basically automatically generates swagger.yaml + swagger.json + swagger editor ui from your fiber routes.

It can automatically generate the route + the route path parameters. If you wanna provide more info, I've created a simple interface that wraps the fiber's router and isn't too annoying ... or you can use `gofiberswagger.RegisterRoute()` to add the definition on your own (without touching the existing code).

The library uses reexported github.com/getkin/kin-openapi types, that means that you can specify ANY openapi field you wanna (not only in routes, but also in the general config, eg. auth / security schemes / title / openapi version / etc).

I've implemented it into some of my personal projects and tbh I love it, that's why I decided to share it with y'all. I know about swaggo/swag, however I don't like how my code looks while using it.

I've created some basic examples inside the `/examples/` folder, so be sure to check them out! Any feedback would be appreciated.


First thing that comes to mind is the need to link against libraries across platforms. Imagine that my app depends on opencv, if I wanted to statically link everything on my Windows machine, I need to compile opencv for Linux on my windows machine (or use pre-compiled binaries). Also, if you link against libraries dynamicaly, it's likely you can compile them on the host machine (or in a container) with more optimizations enabled. And the last thing is probably the ability to "freeze" the whole "system" environment (like folders, permissions, versions of system libraries).

Personally, I use containers to quickly spin-up different database servers for development or as an easy way of deployment to a cloud service...


In theory, you must have written some code to train the models + download the data ... just openning this code + adding logging to store the sources trained on, you could achieve trully "open source" (anybody can now go and scrape + train the same way you did and achieve the same outcome/model)

I'm not saying "opening models is bad", it's good. However imo it would be nice to have a semantic way to differentiate between those two


Depends on what you're into:

romance: i would suggest "Looking for Alaska" by John Green or "Pierre et Luce" by Romain Rolland

fantasy: The Way Of Kings by Brandon Sanderson or "Blackout" by Marc Elseberg

life advice ig?: "The Algebra of Happiness" by Scott Galloway

... never been a CTO xd


the first usecase I thought about was the tryhards that want to save every second :D ... idk there could be a legitimate usecase


That's exactly what it's. Anyone trying to rank (and even if not) had a tool such as this built since AoC's origins years before AI coding solutions. Seems nowadays for many people any kind of automation implies AI assistance.


I guess they could just ditch the competetive rankings altogether now with AI coding assistants. Keep the star system to keep track of what you did yourself, at most.


as a high school student, I'm more hesitant to go into CS degree not because of chatgpt but because it is constantly marketed as a high income job and A LOT of people are choosing/learning it. I wonder if it's gonna be the same in 10 years or so. Chatgpt/copilot make stuff easier and there are only so much CRUD apps to be made :/


hi ^^, limited knowledge as well, however I'm pretty sure the issue is that Harvest allows all urls to be used as callback urls. You should tell microsoft to allow only certain urls as callbacks. eg, when setting up the workflow, they probably used a wildcard as an allow list of callback urls, instead of creating an actual list of trusted callback urls. I think that's what's happening here, could be totally wrong tho :D


I've finished the core logic like a half a year ago, haven't had the time to add GUI yet -> https://github.com/TDiblik/deps-graph


Yep, few of my classmates had a problem with it. Just change your name temporarily and then change it back :/ ... sucks but works atm


I did this unintentionally.. so this is the reason it worked.


Open your eyes, look up to the skies and seeeeeeee


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: