Skip to content
Prompt

gocron — Copilot Instructions

by go-co-op

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "gocron — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/go-co-op/gocron

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Easy and fluent Go cron scheduling. This is a fork from https://github.com/jasonlvhit/gocron

CI Requirements

The CI will fail if: • Tests don't pass (make test_ci) • Function order in example_test.go is incorrect • golangci-lint finds issues (though config compatibility varies)

gocron: Go Job Scheduling Library

Always reference these instructions first and fallback to search or bash commands only when you encounter unexpected information that does not match the info here.

Bootstrap and Build Commands

• Install dependencies: go mod tidy • Build the library: go build -v ./... • Install required tools: • go install go.uber.org/mock/mockgen@latest • export PATH=$PATH:$(go env GOPATH)/bin (add to shell profile) • Generate mocks: make mocks • Format code: make fmt

Testing Commands

• Run all tests: make test -- takes 50 seconds. NEVER CANCEL. Set timeout to 90+ seconds. • Run CI tests: make test_ci -- takes 50 seconds. NEVER CANCEL. Set timeout to 90+ seconds. • Run with coverage: make test_coverage -- takes 50 seconds. NEVER CANCEL. Set timeout to 90+ seconds. • Run specific tests: go test -v -race -count=1 ./...

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 2d ago
Active
Adoption1K+ stars on GitHub
7.0k ★ · Popular
DocsREADME + description
Well-documented

GitHub Signals

Stars7.0k
Forks341
Issues0
Updated2d ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more