Skip to content

Commit

Permalink
Merge pull request #15 from webability-go/late-night
Browse files Browse the repository at this point in the history
patch v0.4.0
  • Loading branch information
metalwolf authored Mar 30, 2020
2 parents f532b25 + b8d16c3 commit dc6bb36
Show file tree
Hide file tree
Showing 8 changed files with 270 additions and 259 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,26 @@ Manuals are available on godoc.org [![GoDoc](https://godoc.org/github.com/webabi

TO DO:
======

- Make it thread safe ? (so maybe with a flag to activate it ?)
- Add Time ? Other types of int32, int64, float32, runes etc ?
- Merge vs load to load more than 1 file (pending)
- implement + and : *
- implement + and :
- implement Save
- Add a flag when it's a multiple load to warn a "save"
- Add error control con Get* for type conversions (if the type is different as expected)
- Log errors into official log

Version Changes Control
=======================

v0.4.0 - 2020-03-29
-----------------------
- Modulatization (go mod init) and use of xcore/v2
- Documentation finished
- Comments into code, corrections to meet golint standards
- String modified to order printed lines and get a uniform result if the XConfig contains the same data
- Tests implemented to verify official defined specs

v0.3.0 - 2020-02-11
-----------------------
- Documentation enhanced, Configuration Syntax Reference added
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/webability-go/xconfig

go 1.14

require github.com/webability-go/xcore/v2 v2.0.2
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
github.com/webability-go/xcore/v2 v2.0.2 h1:ztdwunb54Oe3i+qMV+JZAl2yGhMhjsWLr5oGRW9acpQ=
github.com/webability-go/xcore/v2 v2.0.2/go.mod h1:8ZughUZ/qGYTcp02igrR43TjH+s+hsoV3m/rseLd3ZQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
30 changes: 30 additions & 0 deletions testunit/a.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# integers
param10=1
param10=2
param10=3
param10=4
param10=5
param11=101
# booleans
param20=true
param20=true
param20=false
param20=true
param20=false
param21=true
# Strings
param30=abc
param30=def
param30=def
param30=ghi
param30=jkl
param31="true
param32="123
# floats
param40=1.1
param40=2.3
param40=3.0
param40=4.567
param40=5.1
param41=0.0
param42=1.345e-76
Empty file added testunit/b.conf
Empty file.
141 changes: 0 additions & 141 deletions testunit/xonfig_test.go

This file was deleted.

Loading

0 comments on commit dc6bb36

Please sign in to comment.