Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dduan/TOMLDecoder

Open more actions menu

Repository files navigation

TOMLDecoder

A fast, Swift-native, minimal dependency library that fully implements TOML spec 1.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)

Read the documentation to learn more!

License

MIT. See LICENSE.md.

About

From TOML to Swift Codable types.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Morty Proxy This is a proxified and sanitized view of the page, visit original site.