workers

package module
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 1 Imported by: 66

README

workers (deprecated, moved to workers-go)

[!IMPORTANT] This module has moved to github.com/syumai/workers-go. See syumai/workers-go#173 for the full rationale and migration plan.

github.com/syumai/workers is kept alive as a forwarding module ("mirror") so that existing importers keep building. Every exported type, function, constant, and variable in this module is a thin alias/wrapper over the corresponding symbol in github.com/syumai/workers-go:

type Foo = workersgo.Foo
var Bar = workersgo.Bar

These forwarding files are regenerated and pushed here automatically as part of github.com/syumai/workers-go's own release workflow: right after a workers-go release is tagged, that workflow regenerates this module's forwarders from the new tag, verifies them, and pushes the result here (over SSH, using a deploy key scoped to this repository) together with a matching tag. This repository has no workflows of its own — there is nothing here that runs on a schedule or reacts to activity in this repository. Do not send pull requests to this repository — it contains no handwritten code, and any manual change will be overwritten by the next sync. File issues and pull requests against syumai/workers-go instead.

Migration

Update your import paths from github.com/syumai/workers to github.com/syumai/workers-go:

sed -i 's|github.com/syumai/workers|github.com/syumai/workers-go|g' $(grep -rl 'github.com/syumai/workers' --include='*.go' .)

On macOS, sed -i requires an explicit (possibly empty) backup suffix argument:

sed -i '' 's|github.com/syumai/workers|github.com/syumai/workers-go|g' $(grep -rl 'github.com/syumai/workers' --include='*.go' .)

Then update go.mod/go.sum:

go mod edit -droprequire=github.com/syumai/workers
go get github.com/syumai/workers-go@latest
go mod tidy

Compatibility notes

  • This module is versioned in lockstep with workers-go: workers-go vX.Y.Zworkers vX.Y.Z.
  • cmd/workers-assets-gen in this module is a stub; use github.com/syumai/workers-go/cmd/workers-assets-gen instead (see cmd/workers-assets-gen).
  • Sync from workers-go is push-based, driven entirely from workers-go's release workflow; it normally lands within the same workflow run as the workers-go release. Old versions of this module are never broken by a failed sync — a failure there simply leaves this module on its previous tag until the next workers-go release (or a manual re-run) retries it.
  • This module will eventually be frozen and archived once workers-go reaches a stable v1.0.0 (or after a fixed maintenance window, whichever comes first) — see syumai/workers-go#173 for the current policy.

License

MIT, see LICENSE.md.

Documentation

Overview

Deprecated: use github.com/syumai/workers-go instead.

Index

Constants

This section is empty.

Variables

View Source
var Done = src.Done
View Source
var Ready = src.Ready
View Source
var Serve = src.Serve
View Source
var ServeNonBlock = src.ServeNonBlock

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
_examples
browser module
cache module
env module
fetch module
fetch-event module
hello module
incoming module
kv-counter module
queues module
sockets module
_templates
Deprecated: use github.com/syumai/workers-go/cloudflare instead.
Deprecated: use github.com/syumai/workers-go/cloudflare instead.
cache
Deprecated: use github.com/syumai/workers-go/cloudflare/cache instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/cache instead.
cron
Deprecated: use github.com/syumai/workers-go/cloudflare/cron instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/cron instead.
d1
Deprecated: use github.com/syumai/workers-go/cloudflare/d1 instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/d1 instead.
fetch
Deprecated: use github.com/syumai/workers-go/cloudflare/fetch instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/fetch instead.
kv
Deprecated: use github.com/syumai/workers-go/cloudflare/kv instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/kv instead.
queues
Deprecated: use github.com/syumai/workers-go/cloudflare/queues instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/queues instead.
r2
Deprecated: use github.com/syumai/workers-go/cloudflare/r2 instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/r2 instead.
sockets
Deprecated: use github.com/syumai/workers-go/cloudflare/sockets instead.
Deprecated: use github.com/syumai/workers-go/cloudflare/sockets instead.
cmd
workers-assets-gen command
Command workers-assets-gen has moved to github.com/syumai/workers-go.
Command workers-assets-gen has moved to github.com/syumai/workers-go.
examples
exp
hono
Deprecated: use github.com/syumai/workers-go/exp/hono instead.
Deprecated: use github.com/syumai/workers-go/exp/hono instead.

Jump to

Keyboard shortcuts

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