TOMLDecoder 0.1.6

TOMLDecoder 0.1.6

Daniel Duan维护。



 
依赖项
NetTime~> 0.2.2
TOMLDeserializer~> 0.2.4
 

TOMLDecoder

TOML v0.5.0内容中解码您的值。

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)

支持的平台:iOS、Linux、macOS、tvOS和watchOS。

介绍中了解更多信息。

安装

使用CocoaPods

use_frameworks!

pod "TOMLDecoder"

使用SwiftPM

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

使用Carthage

github "dduan/TOMLDecoder"

许可协议

MIT。查看 LICENSE.md 文件。