🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

github.com/joncalhoun/queue

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/joncalhoun/queue

Source
Go Modules
Version
v0.0.0-20170510025331-5d6da40929f6
Version published
Created
Source

queue

A generator for creating typed queues + the queue implementations themselves.

If you want to learn about code generation and see what points I was trying to demonstrate when I created this repo, you can check out the blog post here - https://www.calhoun.io/using-code-generation-to-survive-without-generics-in-go/

Example usage

All of the sample files here were created by navigating to thie queue directory and then running the following:

go run gen/main.go -name=String -type=string > string.go
go run gen/main.go -name=Int -type=int > int.go
go run gen/main.go -name=IntSlice -type="[]int" > int_slice.go
# Getting a little meta
go run gen/main.go -name=List -type="*list.List" > container_list.go

FAQs

Package last updated on 10 May 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