diff options
author | Roman Gräf <romangraef@gmail.com> | 2020-05-01 00:14:07 +0200 |
---|---|---|
committer | Roman Gräf <romangraef@gmail.com> | 2020-05-01 00:14:07 +0200 |
commit | 21bd21a6bb736fd829c94222ad5450d9b4ca2f00 (patch) | |
tree | 3d4cefd0997cf2bb193c0386b4bc3bd4729758dd /README.md | |
parent | 42c7a0c8ef35e5052c6c81abd60d137baef6e852 (diff) | |
download | jrconfig-21bd21a6bb736fd829c94222ad5450d9b4ca2f00.tar.gz jrconfig-21bd21a6bb736fd829c94222ad5450d9b4ca2f00.tar.bz2 jrconfig-21bd21a6bb736fd829c94222ad5450d9b4ca2f00.zip |
Kotlin delegatesv0.4
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -21,10 +21,14 @@ public class ConfigurableClass1 { Kotlin: ```kotlin val someConfigProp = Config.get<String>("someProp") +var someOtherOption by Config.get<String>("someOtherOption") + fun main() { Config.use(FilePropertiesProvider.create("config.properties")) println(someConfigProp.get()) + println(someOtherOption) + someOtherOption = "lul" } ``` @@ -59,7 +63,7 @@ repositories { } dependencies { - implementation("com.github.romangraef", "jrconfig", "v0.3") + implementation("com.github.romangraef", "jrconfig", "v0.4") } ``` The version can be either a git shortref, or a [tag](https://github.com/romangraef/jrconfig/tags). |