package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Nov 26, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package durchunk provides functions to split a map of key-durations into balanced chunks.
type Chunk struct {
Keys []string `json:"keys"`
Total time.Duration `json:"total_seconds"`
}
Chunk chunk after balanced split
SplitBalanced は map[string]time.Duration を指定したチャンク数に分割します。
- 合計時間を均等化
- 要素数に制約なし(最低1個以上)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.