Registry / serialization / mazznoer-csscolorparser

mazznoer-csscolorparser

JSON →
library0.1.8gogounverified

Parses CSS color strings as defined in the W3C CSS Color Module Level 4.

go get github.com/mazznoer/csscolorparser
INSTALL
IMPORT
SIG · MAZZNOER-CSSCOLORP
M
mazznoer-csscolorparser
serializationgov0.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

csscolorparser
github.com/mazznoer/csscolorparser

Parses a CSS color string and returns its RGBA components.

package main import ( "fmt" "github.com/mazznoer/csscolorparser" ) func main() { c, err := csscolorparser.Parse("rgba(255, 0, 0, 0.5)") if err != nil { panic(err) } fmt.Println(c.R, c.G, c.B, c.A) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mazznoer-csscolorparser — go get mazznoer-csscolorparser · libregistry