
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
github.com/hendra-huang/go-standard-layout
Reading some articles for designing go standard layout. These are the guidelines that I use:
testdata
folder name for containing test fixturesThis is a small app that consist of 2 entities, User and Article. 1 user can have more than 1 articles. For both entities, there are some sample endpoints provided. I wrap the router and provides basic monitoring using prometheus. I use dep for depedency management. There is simple opentracing implementation in this app. This app is also provided with unit test and parallel database integration test.
The files in the root package contains domain logic (business logic) of the app. cmd
contains entrypoint of the app / command. script
contains shell script that can help to automate the build process, etc. Currently, script
contains script for running test with code coverage preview. The rest of folders are the dependencies of the app. The data layer is at mysql
package. You can find list of endpoints in router
package. HTTP handler is located in handler
package inside server
folder.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.