Skip to content

MillerTechnologyPeru/TOMLDecoder

 
 

Repository files navigation

TOMLDecoder

TOML parser for your Swift Codables.

struct Team: Codable {
    struct Player: Codable {
        let id: String
        let health: Int
        let joinDate: Date
    }

    let players: [Player]
}

let team = try TOMLDecoder().decode(Team.self, from: tomlData)

TOMLDecoder has a relatively simple set of APIs. Learn more in the introduction.

Installation

With SwiftPM

.package(url: "https://github.com/dduan/TOMLDecoder", from: "0.3.1")

License

MIT. See LICENSE.md.

About

From TOML to Swift Codable types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 76.3%
  • C 22.3%
  • Other 1.4%