тестовый го бэкэнд
This commit is contained in:
15
backend/excel.go
Normal file
15
backend/excel.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user