Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Configuration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Application
Configuration
Commits
98adb543
Verified
Commit
98adb543
authored
2 years ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
documentation
parent
16566494
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+9
-11
9 additions, 11 deletions
README.md
with
9 additions
and
11 deletions
README.md
+
9
−
11
View file @
98adb543
## Configuration
## Configuration
## Installation
```
shell
go get gitlab.schukai.com/oss/libraries/go/application/configuration
```
**Note:**
This library uses
[
Go Modules
](
https://github.com/golang/go/wiki/Modules
)
to manage dependencies.
## What do this library?
## What do this library?
This library provides a simple way to load configuration from different sources.
This library provides a simple way to load configuration from different sources.
...
@@ -23,6 +15,15 @@ It supports:
...
@@ -23,6 +15,15 @@ It supports:
*
[x] Properties
*
[x] Properties
*
[x] Configuration from a struct
*
[x] Configuration from a struct
*
[x] HTTP API (get and set configuration)
*
[x] HTTP API (get and set configuration)
*
[x] Monitor File changes
## Installation
```
shell
go get gitlab.schukai.com/oss/libraries/go/application/configuration
```
**Note:**
This library uses
[
Go Modules
](
https://github.com/golang/go/wiki/Modules
)
to manage dependencies.
## Usage
## Usage
...
@@ -228,9 +229,6 @@ returns a bool channel on which the status of the watch is reported.
...
@@ -228,9 +229,6 @@ returns a bool channel on which the status of the watch is reported.
If the watch has ended, a true is sent over the channel. If an error occurs, a false is sent.
If the watch has ended, a true is sent over the channel. If an error occurs, a false is sent.
```
go
#### Streams
#### Streams
The configuration can also be loaded from a stream. This is useful if you want to
The configuration can also be loaded from a stream. This is useful if you want to
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment