You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/teubanks/go-queue

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/teubanks/go-queue

v0.0.0-20171003152741-d4a6f97f7120
Source
Go
Version published
Created
Source

GoQueue

Because it sounds like Goku

Package

This is a very lightweight implementation of a queue. There are two main functions, Pop and Push. Supporting functions are Len and Cap

Usage

q := queue.NewQueue()
...
q.Push(data)
...
dat, valid := q.Pop()

Len returns the number of queue objects currently stored in the queue

Cap returns the current capacity of the queue

See the _example directory for a more in-depth example

FAQs

Package last updated on 03 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts