Files
WeiCHEN dca33c705d refactor(boundaries): split five oversized packages by use-case
Move bizdev/freedoc/intent/projectworkflow/squad giant files into
≤800-line use-case siblings without behavior change; short tests green.
2026-09-23 09:52:16 +08:00

15 lines
212 B
Go

package squad
import (
"encoding/json"
"os"
)
func writeJSON(path string, val any) error {
b, err := json.MarshalIndent(val, "", " ")
if err != nil {
return err
}
return os.WriteFile(path, b, 0o644)
}