vecty
counterfeiter
Our great sponsors
vecty | counterfeiter | |
---|---|---|
8 | 12 | |
2,757 | 918 | |
1.2% | - | |
0.0 | 7.6 | |
over 1 year ago | 7 days ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vecty
-
Is there a Yew.rs like framework for Go?
Vecty
-
Projects without writing any of the front end.
It depends on how specifically you don't want to write HTML/CSS/JS and how broad your definition of "frontend" is. There are a handful of all-go frontend frameworks such as Vecty and Vugu of varying maturity and completeness. Then there's other libraries that more or less have you write HTML tags in go, such as go-app.
-
Is there any way to interop with JS in Zig/RS/C/C++?
It draws on Go's syscall/js library as inspiration, which is pretty powerful (I wrote a pretty popular React-like framework using it a while back.)
-
Migrating from NodeJS/Typescript into Golang. Any advise for big web application?
A note on wasm: I'm building a hobby project with it right now and have tried different frameworks, I tried vecty which is nice to compile but full of bugs and unexpected behavior. I'm now on vugu which works better but is still harder to work with than a JS framework.
-
What frontend libraries do exist in Go?
https://github.com/hexops/vecty/ is a framework for developing dynamic web frontends in Go. It's not production-ready, and will likely get some rewrites once generics drop, but it's pretty neat (I'm a contributor).
-
Go for web frontend
There's Vecty, though it's likely to get a bit of a redesign once generics drops.
-
go-app V8 release
How does it compare to https://github.com/hexops/vecty or https://github.com/bep/gr ?
-
Daz: Composable HTML components in golang
Reminds me of Vecty from the GopherJS project: https://github.com/hexops/vecty .
counterfeiter
-
Mocking database calls without a library?
then just replace whole function, don't generate manually the mock '__') or it would get out of hand fast, you can just use codegen that static typed like https://github.com/maxbrunsfeld/counterfeiter
-
Is this a good way to make sure that a mocked function is called inside the Unit Test?
Yes, that's a good way to do that; there are a lot of packages that allow you to mock and spy the calls if you're looking for one that generates the code for you I can recommend counterfeiter, I also have a short blog that covers it.
-
Libraries you use most of your projects?
I prefer https://github.com/maxbrunsfeld/counterfeiter
-
How do you write/generate mocks for testing?
counterfeiter is another tool, it creates mocks, stubs and spies; here is a short blog I wrote covering it.
- Mocking Interfaces in Go with GoMock
- What's the best approach for mocking a function /method?
-
Best/Easiest Rest Framework
for dependency injection I suggest you use https://github.com/maxbrunsfeld/counterfeiter, but if you using really fast database (that can spawn fast using docker and has fast trx/sec) you can use it directly without dependency injection with https://github.com/ory/dockertest
-
Migrating from NodeJS/Typescript into Golang. Any advise for big web application?
Agree with u/mmknightx there is a tool that assist in creating fake or mock classes for your interfaces https://github.com/maxbrunsfeld/counterfeiter
-
How do you control behaviour in mocked interface ?
Another alternative to use would be counterfeiter, it generates a type from your interface that could be used as a mock, stub or spy. I wrote a short post covering that tool if you're interested.
- Slack notification Github action
What are some alternatives?
vugu - Vugu: A modern UI library for Go+WebAssembly (experimental)
gomock - GoMock is a mocking framework for the Go programming language.
go-app - A package to build progressive web apps with Go programming language and WebAssembly.
mockery - A mock code autogenerator for Go
go-canvas - Library to use HTML5 Canvas from Go-WASM, with all drawing within go code
Mmock - Mmock is an HTTP mocking application for testing and fast prototyping
spago - SpaGo is toolkit for Single Page Application.
prettybenchcmp - cmd tool for automatic storage and comparison of benchmarks results
gopherjs - A compiler from Go to JavaScript for running Go code in a browser
gock - HTTP traffic mocking and testing made easy in Go ༼ʘ̚ل͜ʘ̚༽
vert - WebAssembly interop between Go and JS values.
mockhttp - Mock object for Go http.ResponseWriter