Skip to content

Commit

Permalink
Merge pull request #60 from webability-go/late-night
Browse files Browse the repository at this point in the history
patch v2.0.4
  • Loading branch information
metalwolf committed Apr 13, 2020
2 parents 17b8738 + 0dd7ead commit 829ee50
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Some improvements to check, later:
Version Changes Control
=======================

v2.0.4 - 2020-04-13
-----------------------
- XLanguage: Added GetEntries() func (not thread safe yet)

v2.0.3 - 2020-04-08
-----------------------
- XLanguage: Error corrected on loadXMLString: the data was not loading correctly into the XLanguage object.
Expand Down
2 changes: 1 addition & 1 deletion v2/xcore.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
package xcore

// VERSION is the used version nombre of the XCore library.
const VERSION = "2.0.3"
const VERSION = "2.0.4"

// LOG is the flag to activate logging on the library.
// if LOG is set to TRUE, LOG indicates to the XCore libraries to log a trace of functions called, with most important parameters.
Expand Down
8 changes: 8 additions & 0 deletions v2/xlanguage.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ func (l *XLanguage) Del(entry string) {
delete(l.entries, entry)
}

func (l *XLanguage) GetEntries() map[string]string {
// mutext lock
// if no mutex:
return l.entries
// else makes a clone copy of entries
// mutex realese
}

// String will transform the XDataset into a readable string for humans
func (l *XLanguage) String() string {
sdata := []string{}
Expand Down

0 comments on commit 829ee50

Please sign in to comment.