
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
github.com/surajkadam7/bplus_tree
Advanced tools
This repository contains an implementation of a B+ tree using Go generics. The B+ tree is a powerful data structure for indexing and organizing data, and this project aims to provide a generic and efficient implementation.
The project exposes an interface, BPTree, for clients to interact with the B+ tree. Here's an overview of the methods available in the interface:
type Comparable interface {
uint | uint8 | uint16 | uint32 | uint64 | int | int32 | int64 | float32 | float64
}
type BPTree[T1 Comparable, T2 any] interface {
Get(key T1) (value T2, err error)
Put(key T1, value T2) (err error)
Delete(key T1) (err error)
}
Here's an example demonstrating how to use the B+ tree:
package main
import (
"fmt"
"log"
)
func main() {
t := New[int, float64](3)
err := t.Put(10, 20.0)
if err != nil {
log.Println(err)
}
value, err := t.Get(10)
if err != nil {
log.Println(err)
}
fmt.Printf("key : %d value : %f \n", 10, value)
err = t.Delete(10)
if err != nil {
log.Println(err)
}
}
Contributions are welcome! If you find issues, have suggestions for improvements, or want to add new features, feel free to create a pull request. Please follow these guidelines:
Thank you for considering contributing to this project!
FAQs
Unknown package
Did you know?

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.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.