Skip to content

Instantly share code, notes, and snippets.

View wenweih's full-sized avatar
🏠
Working from home

huangwenwei.com wenweih

🏠
Working from home
View GitHub Profile
{"version":1,"resource":"file:///Users/wenwei/work/shop/nooks-living/spec/policies/user_policy_spec.rb","entries":[{"id":"7vzf.rb","timestamp":1732069449273}]}
@wenweih
wenweih / block_projector.go
Created March 12, 2021 04:55
Sample for Post
package repository
import (
"context"
"errors"
"fmt"
"time"
"github.com/go-pg/pg/v10"
"github.com/go-pg/pg/v10/pgjson"
@wenweih
wenweih / folder_structure.md
Created January 24, 2025 03:30 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files