Skip to content

nikitabobko/TOMLDecoder

 
 

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 get started.

License

MIT. See LICENSE.md.

About

From TOML to Swift Codable types.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Swift 84.8%
  • Python 10.7%
  • Shell 3.7%
  • Starlark 0.4%
  • C++ 0.2%
  • Makefile 0.1%
  • C 0.1%