Skip to content

Commit

Permalink
Mention thread-safety. Closes #39
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Dec 24, 2019
1 parent ae1990f commit 6a033e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ var metadataStartMarker = []byte("\xAB\xCD\xEFMaxMind.com")

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

0 comments on commit 6a033e6

Please sign in to comment.