sponsors

command module
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sponsors

Fetches sponsors from GitHub Sponsors and OpenCollective and renders them into your files via Go templates.

Install

# brew:
brew install --cask goreleaser/tap/sponsors

# npm/npx:
npm -ig @goreleaser/sponsors
npx @goreleaser/sponsors

# from source:
go install github.com/goreleaser/sponsors@latest

Usage

# Fetch sponsors and write sponsors.json (requires GITHUB_TOKEN)
sponsors generate --config sponsors.yml sponsors.json

# Render a template between commented markers (sponsors apply --help):
sponsors apply sponsors.json readme.tpl.md README.md

--config defaults to sponsors.yml in the current directory.

Config

github_user: caarlos0
opencollective_slug: goreleaser

tiers:
  - id: gold
    name: Gold
    monthly_rate: 100
  - id: backer
    name: Backer
    monthly_rate: 0

# Redirect a sponsor's login to another account (e.g. individual → org).
# The target's real name, avatar and website are fetched from GitHub.
aliases:
  johndoe: acme-corp

# Manually managed entries; those past end_date are silently ignored.
external_sponsors:
  - name: Acme Corp
    id: acme-corp
    source: github
    website: https://acme.com
    image: https://github.com/acme-corp.png
    tier: gold
    end_date: "2027-03-23"

Templates

Templates receive .Sponsors, .Tiers, and .ByTier (sponsors keyed by tier ID). A dict helper and Sponsor.LogoWithSize(size int) are available:

{{- define "tier" -}}
{{- if $s := index . "sponsors" }}
{{- range $s }}<a href="{{ .Website }}"><img src="{{ .LogoWithSize (index $ "size") }}" /></a>{{ end }}
{{- end -}}
{{- end -}}
{{- template "tier" (dict "size" 96 "sponsors" (index .ByTier "gold")) -}}

Our Sponsors

Diamond
SerpApi

Gold
Mercedes-Benz Group GitHub SecureOSS Fund

Silver
N-iX Ltd

Bronze
conet cloud Encore Comet Gitea

And many more!

See the full list here.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址