mirror of
https://github.com/foomo/walker.git
synced 2026-11-30 00:41:45 +00:00
24 lines
774 B
Swift
24 lines
774 B
Swift
// Code generated by goswiftrpc https://github.com/foomo/goswiftrpc - DO NOT EDIT.
|
|
import Foundation
|
|
|
|
// time
|
|
public enum GoTime {}
|
|
|
|
extension GoTime {
|
|
// time.Duration
|
|
public struct Duration: RawRepresentable, Codable, Sendable, Hashable {
|
|
public let rawValue: Int64
|
|
|
|
public init(rawValue: Int64) {
|
|
self.rawValue = rawValue
|
|
}
|
|
|
|
public static let hour = Duration(rawValue: 3600000000000)
|
|
public static let microsecond = Duration(rawValue: 1000)
|
|
public static let millisecond = Duration(rawValue: 1000000)
|
|
public static let minute = Duration(rawValue: 60000000000)
|
|
public static let nanosecond = Duration(rawValue: 1)
|
|
public static let second = Duration(rawValue: 1000000000)
|
|
}
|
|
}
|