
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
github.com/gothinkster/golang-gin-realworld-example-app
Golang/Gin codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.
This codebase was created to demonstrate a fully fledged fullstack application built with Golang/Gin including CRUD operations, authentication, routing, pagination, and more.
.
āāā gorm.db
āāā hello.go
āāā common
ā āāā utils.go //small tools function
ā āāā database.go //DB connect manager
āāā users
| āāā models.go //data models define & DB operation
| āāā serializers.go //response computing & format
| āāā routers.go //business logic & router binding
| āāā middlewares.go //put the before & after logic of handle request
| āāā validators.go //form/json checker
āāā ...
...
Make sure you have Go 1.13 or higher installed.
https://golang.org/doc/install
Set-up the standard Go environment variables according to latest guidance (see https://golang.org/doc/install#install).
From the project root, run:
go build ./...
go test ./...
go mod tidy
From the project root, run:
go test ./...
or
go test ./... -cover
or
go test -v ./... -cover
depending on whether you want to see test coverage and how verbose the output you want.
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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.