go-nil-slice

Community

Nil slice usage patterns.

AuthorJamesPrial
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Nil slices are valid, but encoding and iteration differ from empty slices.

Core Features & Use Cases

  • Nil vs Empty: Distinguish nil vs empty for JSON and APIs.
  • Append Semantics: Nil slices work with append to create a backing array.

Quick Start

Use nil for "no data" and []T{} for "empty data" in your API responses.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-nil-slice
Download link: https://github.com/JamesPrial/claudefiles/archive/main.zip#go-nil-slice

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.