v1.1.3

Removed API

Last updated


This page records every symbol removed from go-queue, the version it left in, and what to use instead.

Root Package Moved to core


Every exported symbol moved from the module root github.com/pardnchiu/go-queue to the sub-package github.com/pardnchiu/go-queue/core (commit bafc412). Signatures and behavior are unchanged; only the import path differs. The old root package was named goQueue, so v1.1.3 code usually imported it under an alias such as queue.
SymbolPackageStatusLast PresentReplacement
Newgithub.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.New
Queue (Start, Enqueue, Shutdown)github.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.Queue
Configgithub.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.Config
PresetConfiggithub.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.PresetConfig
Priority and its constantsgithub.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.Priority, core.PriorityImmediate ... core.PriorityLow
EnqueueOptiongithub.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.EnqueueOption
WithTaskID, WithTimeout, WithCallback, WithRetrygithub.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased)v1.1.3core.WithTaskID, core.WithTimeout, core.WithCallback, core.WithRetry
Methods on unexported types (pending: Push, Pop, Len, State, Close; taskHeap: Len, Less, Swap, Push, Pop)github.com/pardnchiu/go-queueRemoved in the first release after v1.1.3 (unreleased); never reachable by callersv1.1.3No public replacement; moved unchanged into core

Migrating


  1. -import queue "github.com/pardnchiu/go-queue"
  2. +import "github.com/pardnchiu/go-queue/core"
  3. -q := queue.New(&queue.Config{Workers: 4})
  4. +q := core.New(&core.Config{Workers: 4})
中文