<commit_before># cssrefs

Package cssrefs returns a slice of `Reference{URI, Token string}`s from an `io.Reader`.

### usage

```go
package main

import (
    "fmt"
    "net/http"

    "github.com/weisjohn/cssrefs"
)

func main() {
    resp, _ := http.Get("http://johnweis.com/css/main.css")
    refs := cssrefs.All(resp.Body)

    for _, ref := range refs {
        fmt.Println(ref.Token, ":", ref.URI)
    }
}
```

### output

// TODO:

### struct

`cssrefs` returns a slice of `Reference`s

```
type Reference struct {
    URI, Token string
}
```

### credits

Inspired by https://github.com/weisjohn/htmlrefs<commit_msg>showing sample output for the runner<commit_after># cssrefs

Package cssrefs returns a slice of `Reference{URI, Token string}`s from an `io.Reader`.

### usage

```go
package main

import (
    "fmt"
    "net/http"

    "github.com/weisjohn/cssrefs"
)

func main() {
    resp, _ := http.Get("http://johnweis.com/css/main.css")
    refs := cssrefs.All(resp.Body)

    for _, ref := range refs {
        fmt.Println(ref.Token, ":", ref.URI)
    }
}
```

### output

``` $ go run example-cssrefs.go
css : fineprint.css
font : ../fonts/bootstrap/glyphicons-halflings-regular.eot
font : ../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix
font : ../fonts/bootstrap/glyphicons-halflings-regular.woff
font : ../fonts/bootstrap/glyphicons-halflings-regular.ttf
font : ../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular
img : ../img/light_honeycomb_@2X.png
img : ../img/light_honeycomb.png
```

### struct

`cssrefs` returns a slice of `Reference`s

```
type Reference struct {
    URI, Token string
}
```

### credits

Inspired by https://github.com/weisjohn/htmlrefs
{'fraction_non_alphanumeric': 0.16230366492146597, 'fraction_numerical': 0.0005817335660267597, 'mean_word_length': 3.398976982097187, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509673', 'n_tokens_mistral': 658, 'n_tokens_neox': 606, 'n_words': 128}