| 18757 | } |
| 18758 | |
| 18759 | static bool write_go_file(const char *dir, const char *name, const char *source) { |
| 18760 | char path[512]; |
| 18761 | snprintf(path, sizeof(path), "%s/%s", dir, name); |
| 18762 | FILE *f = fopen(path, "w"); |
| 18763 | if (!f) { |
| 18764 | return false; |
| 18765 | } |
| 18766 | bool ok = fputs(source, f) >= 0; |
| 18767 | fclose(f); |
| 18768 | return ok; |
| 18769 | } |
| 18770 | |
| 18771 | /* ═══════════════════════════════════════════════════════════════════ |
| 18772 | * FastAPI Depends() edge tracking (PR #66, fix #27) |