51Degrees / Device-Detection

THE Fastest and most Accurate device detection for C / PHP / Perl / Python and Node.js - professionally maintained device data
https://51degrees.com/device-detection
Other
112 stars 46 forks source link

Add godoc examples to the pattern go package #38

Closed otternq closed 5 years ago

otternq commented 5 years ago

This change allows godoc to display code examples. I specifically wanted an example showing how to increase the match pool size.

To view the examples, start godoc

$ godoc -http ":6060"

Then navigate to the pattern package:

http://127.0.0.1:6060/pkg/github.com/51Degrees/Device-Detection/go/src/pattern/