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

github.com/thomasboom89/accept-language-parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/thomasboom89/accept-language-parser

  • v0.0.0-20220914174113-952b955faadd
  • Source
  • Go
  • Socket score

Version published
Created
Source

ALP - Accept-Language Parser

License Go

This is a parser for the http header Accept-Language.
It will split parts into a Language struct {name, quality}.

Installation

Include this module into your existing go project

go get github.com/ThomasBoom89/accept-language-parser

Update

go get -u github.com/ThomasBoom89/accept-language-parser

Usage

It is simple to use, just throw your header into the parse function and you will return an array of Languages

languages, err := alp.Parse(header)
if err != nil {
    panic(err)
}
fmt.Println(languages)

License

ALP- Accept-Header Parser
Copyright (C) 2022 ThomasBoom89. MIT license.

FAQs

Package last updated on 14 Sep 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