Skip to content

Commit 6a033e6

Browse files
committed
Mention thread-safety. Closes #39
1 parent ae1990f commit 6a033e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

reader.go

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ var metadataStartMarker = []byte("\xAB\xCD\xEFMaxMind.com")
2020

2121
// Reader holds the data corresponding to the MaxMind DB file. Its only public
2222
// field is Metadata, which contains the metadata from the MaxMind DB file.
23+
//
24+
// All of the methods on Reader are thread-safe. The struct may be safely
25+
// shared across goroutines.
2326
type Reader struct {
2427
hasMappedFile bool
2528
buffer []byte

0 commit comments

Comments
 (0)