<commit_before>[![Build Status](https://travis-ci.org/ernado/stun.svg)](https://travis-ci.org/ernado/stun)
[![Build status](https://ci.appveyor.com/api/projects/status/92mfv3vxlc8t8jjp/branch/master?svg=true)](https://ci.appveyor.com/project/ernado/stun/branch/master)
[![GoDoc](https://godoc.org/github.com/ernado/stun?status.svg)](http://godoc.org/github.com/ernado/stun)
[![Coverage Status](https://coveralls.io/repos/github/ernado/stun/badge.svg?branch=master)](https://coveralls.io/github/ernado/stun?branch=master)
[![Go Report](https://goreportcard.com/badge/github.com/ernado/stun?camo=retarded)](http://goreportcard.com/report/ernado/stun)
[![RFC 5389](https://img.shields.io/badge/RFC-5389-blue.svg)](https://tools.ietf.org/html/rfc5389)

# stun
Package stun implements Session Traversal Utilities for
NAT (STUN) [RFC 5389](https://tools.ietf.org/html/rfc5389) with focus
on speed and no external dependencies. See [example](https://godoc.org/github.com/ernado/stun#example-Message)
or [stun server](https://github.com/ernado/stund) for usage.

# example
You can get your current IP address from any STUN server by sending
binding request. See more idiomatic example at `cmd/stun-client`.
```go
package main

import (
	"fmt"
	"time"

	"github.com/ernado/stun"
)

func main() {
    // Creating a "connection" to STUN server.
	c, err := stun.Dial("udp", "stun.l.google.com:19302")
	if err != nil {<commit_msg>readme: fix whitespace in example<commit_after>[![Build Status](https://travis-ci.org/ernado/stun.svg)](https://travis-ci.org/ernado/stun)
[![Build status](https://ci.appveyor.com/api/projects/status/92mfv3vxlc8t8jjp/branch/master?svg=true)](https://ci.appveyor.com/project/ernado/stun/branch/master)
[![GoDoc](https://godoc.org/github.com/ernado/stun?status.svg)](http://godoc.org/github.com/ernado/stun)
[![Coverage Status](https://coveralls.io/repos/github/ernado/stun/badge.svg?branch=master)](https://coveralls.io/github/ernado/stun?branch=master)
[![Go Report](https://goreportcard.com/badge/github.com/ernado/stun?camo=retarded)](http://goreportcard.com/report/ernado/stun)
[![RFC 5389](https://img.shields.io/badge/RFC-5389-blue.svg)](https://tools.ietf.org/html/rfc5389)

# stun
Package stun implements Session Traversal Utilities for
NAT (STUN) [RFC 5389](https://tools.ietf.org/html/rfc5389) with focus
on speed and no external dependencies. See [example](https://godoc.org/github.com/ernado/stun#example-Message)
or [stun server](https://github.com/ernado/stund) for usage.

# example
You can get your current IP address from any STUN server by sending
binding request. See more idiomatic example at `cmd/stun-client`.
```go
package main

import (
	"fmt"
	"time"

	"github.com/ernado/stun"
)

func main() {
	// Creating a "connection" to STUN server.
	c, err := stun.Dial("udp", "stun.l.google.com:19302")
	if err != nil {
{'fraction_non_alphanumeric': 0.17993686425815503, 'fraction_numerical': 0.02104524728165556, 'mean_word_length': 5.1731601731601735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 26, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '6970702', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1067, 'n_words': 168}