Skip to content

aciidgh/Configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration

An example of how to use swift for writing configuration/manifest files. This is how SwiftPM parses Package.swift

The basic concept is:

  1. Create a Config module and its product (dynamic library).
  2. Have a method to dump Config data structure to a serializable format. I used JSON in this example.
  3. Invoke swift interpreter with the config product linked and dump JSON on exit.
  4. Read back the JSON and re-create the Config model.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages