Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/go-bittorrent/bep53-range

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/go-bittorrent/bep53-range

  • v0.1.1
  • Source
  • Go
  • Socket score

Version published
Created
Source

bep53-range is a library for parsing bep53 ranges.

Go Reference x codecov Go Report Card


Installation

go get github.com/go-bittorrent/bep53-range

Example

package main

import (
	"fmt"

	"github.com/go-bittorrent/bep53-range/bep53"
)

func main() {
	parsed, err := bep53.Parse([]string{"1-5", "2", "6-12"})
	if err != nil {
		panic(err)
	}

	fmt.Println(parsed)                // [1 2 3 4 5 2 6 7 8 9 10 11 12]
	fmt.Println(bep53.Compose(parsed)) // [1-5 2 6-12]
}

License

MIT

FAQs

Package last updated on 29 May 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc