8000 GitHub - Ezrealz/TOMLDecoder: From TOML to Swift Codable types.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ezrealz/TOMLDecoder

 
 

Repository files navigation

TOMLDecoder

Swift 5.3 & 5.3.1
Amazon Linux 2
CentOS 8
macOS 11.15
Ubuntu Bionic
Ubuntu Focal

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.2.1")

License

MIT. See LICENSE.md.

About

From TOML to Swift Codable types.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 80.3%
  • C 19.3%
  • Other 0.4%
0