тестовый го бэкэнд

This commit is contained in:
Artem Tsyrulnikov
2026-03-27 00:18:42 +03:00
parent 9edb9d6aca
commit 730d453371
7 changed files with 1314 additions and 0 deletions

15
backend/excel.go Normal file
View File

@@ -0,0 +1,15 @@
//go:build !windows
package main
import "fmt"
// Stub implementations for non-Windows platforms (for testing API without Excel COM).
func FillCells(cells map[string]interface{}, fileContent []byte, printArea string) ([]byte, error) {
return nil, fmt.Errorf("Excel COM is only available on Windows")
}
func ReadCells(fileContent []byte) (map[string]interface{}, error) {
return map[string]interface{}{"cells": map[string]interface{}{}, "merged": []interface{}{}}, nil
}