Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverAn toànLàm web & appCần cài đặt chút

nunu

go-nunu · go-nunu/nunu

Công cụ này cung cấp một Agent Skill cho các tác nhân lập trình như Claude Code để xây dựng khung và triển khai các tính năng đã được kiểm tra trong ứng dụng Go, bao gồm cả máy chủ MCP.

A CLI tool for building Go applications.

2.6k sao209Giấy phép: MITCập nhật 2 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Tạo cấu trúc cơ bản cho một ứng dụng web Go mới bằng cách sử dụng tác nhân lập trình AI.
  • Yêu cầu tác nhân AI triển khai các handler, service hoặc repository mới theo kiến trúc của Nunu.
  • Nhanh chóng thiết lập và kiểm tra một máy chủ MCP mới như một phần của dự án Go với sự hỗ trợ của tác nhân.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Nunu — A CLI tool for building Go applications.

Nunu is a scaffolding tool for building Go applications. Its name comes from a game character in League of Legends, a little boy riding on the shoulders of a Yeti. Just like Nunu, this project stands on the shoulders of giants, as it is built upon a combination of popular libraries from the Go ecosystem. This combination allows you to quickly build efficient and reliable applications.

🚀Tips: This project is very complete, so updates will not be very frequent, welcome to use.

Documentation

AI-assisted Development

Nunu Skills provides build-with-nunu, an Agent Skill that helps coding agents such as Codex and Claude Code understand Nunu project layouts and implement complete, tested features across handlers, services, repositories, routers, Wire dependency injection, jobs, tasks, and MCP servers.

Install it in your project with:

npx skills add go-nunu/nunu-skills --skill build-with-nunu

See the Nunu Skills repository for supported layouts, agent-specific installation options, and example prompts.

Features

Key Features

  • Low Learning Curve and Customization: Nunu encapsulates popular libraries that Gophers are familiar with, allowing you to easily customize the application to meet specific requirements.
  • High Performance and Scalability: Nunu aims to be high-performance and scalable. It uses the latest technologies and best practices to ensure that your application can handle high traffic and large amounts of data.
  • Security and Reliability: Nunu uses stable and reliable third-party libraries to ensure the security and reliability of your application.
  • Modular and Extensible: Nunu is designed to be modular and extensible. You can easily add new features and functionality by using third-party libraries or writing your own modules.
  • Complete Documentation and Testing: Nunu has comprehensive documentation and testing. It provides extensive documentation and examples to help you get started quickly. It also includes a test suite to ensure that your application works as expected.

Concise Layered Architecture

Nunu adopts a classic layered architecture. In order to achieve modularity and decoupling, it uses the dependency injection framework Wire.

Nunu CLI

Directory Structure

.
├── api
│   └── v1
├── cmd
│   ├── migration
│   ├── server
│   │   ├── wire
│   │   │   ├── wire.go
│   │   │   └── wire_gen.go
│   │   └── main.go
│   └── task
├── config
├── deploy
├── docs
├── internal
│   ├── handler
│   ├── middleware
│   ├── model
│   ├── repository
│   ├── server
│   └── service
├── pkg
├── scripts
├── test
│   ├── mocks
│   └── server
├── web
├── Makefile
├── go.mod
└── go.sum

The project architecture follows a typical layered structure, consisting of the following modules:

  • cmd: This module contains the entry points of the application, which perform different operations based on different commands, such as starting the server or executing database migrations. Each sub-module has a main.go file as the entry file, as well as wire.go and wire_gen.go files for dependency injection.

  • config: This module contains the configuration files for the application, providing different configurations for different environments, such as development and production.

  • deploy: This module is used for deploying the application and includes deployment scripts and configuration files.

  • internal: This module is the core module of the application and contains the implementation of various business logic.

    • handler: This sub-module contains the handlers for handling HTTP requests, responsible for receiving requests and invoking the corresponding services for processing.

    • job: This sub-module contains the logic for background tasks.

    • model: This sub-module contains the definition of data models.

    • repository: This sub-module contains the implementation of the data access layer, responsible for interacting with the database.

    • server: This sub-module contains the implementation of the HTTP server.

    • service: This sub-module contains the implementation of the business logic, responsible for handling specific business operations.

  • pkg: This module contains some common utilities and functions.

  • scripts: This module contains some script files used for project build, test, and deployment operations.

  • storage: Thi

Xem mã nguồn trên GitHub