synchro
synchro copied to clipboard
🕰️ Synchro: Timezone-typesafe date and time framework for Go. 🌟 Star to support our work!
Results
1
synchro issues
Sort by
recently updated
recently updated
newest added
Proposal: `(Period[T]) Periodic` and similar methods returns `iter.Seq[Time[T]]` instead of channel
6
https://github.com/golang/go/issues/61897 がacceptedになりました。 これに伴い、コレクションを返すAPIでは`iter.Seq`を返すことがおそらく一般的になっていくと思います。 例えばGo標準ライブラリのproposal https://github.com/golang/go/issues/53987#issuecomment-1945059803 は、最終的に`iter.Seq`を返すAPIとしてacceptされました。 同様に、synchroでコレクションを返すAPIを`iter.Seq`に対応させるプランはあるでしょうか?(もしあれば、実装することに興味があります) 具体的には以下のようなものです。 細かいところが十分考えられていないのですが、少し見ていただいた印象としてもしポジティブであればより具体的に考えたいと思っています。 ## Proposal `synchro`ではコレクションを返すメソッドとして`Period[T]`などがunexportedな型`periodical[T]`を返しており、これの実体は`