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/sbueschel/go-linked

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sbueschel/go-linked

v0.1.0
Source
Go
Version published
Created
Source

linked - Generic Linked List

linked is a package implementing a doubly linked list for Go.

Coverage Docs

Features

  • No dependencies: zero 3rd party dependencies.
  • Generics: no need to use any or interface{} (unless you really want to).
  • Iterators: provides both range (as in iter.Seq) and object-based iterators.
  • ...and more: this package provides plenty in the way of features/ergonomics, but enumerating them is currently a TODO item 🙂

Getting Started

Install:

go get github.com/sbueschel/go-linked

Usage:

package main

import (
    "fmt"

    "github.com/sbueschel/go-linked"
)

func main() {
    var list linked.List[int]

    for n := range 10 {
        list.PushFront(n)
    }

    list.ForEach(func(v int) { fmt.Printf("%d\n", v) })
}

FAQs

Package last updated on 01 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.