TOMLDecoder

0.2.2

From TOML to Swift Codable types.
dduan/TOMLDecoder

What's New

0.2.2

2022-05-10T07:36:59Z
  • Fixed a bug when parsing float decimals (#47)
  • Add support for Windows

TOMLDecoder

Amazon Linux 2
CentOS 7
macOS
Ubuntu Bionic
Ubuntu Focal
Windows

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

License

MIT. See LICENSE.md.

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Mar 12 2024 01:07:15 GMT-0900 (Hawaii-Aleutian Daylight Time)