oficina / sheets Public

Clone
git clone https://amadan.net/oficina/sheets

Plain git — no account needed to clone.

Download

Download this file

1package calc
2
3// ErrKind is an Excel error value. These are values, not Go errors: they
4// live in cells, propagate through arithmetic, and round-trip through XLSX.
5type ErrKind uint8
6
7const (
8 ErrNone ErrKind = iota
9 ErrDiv0
10 ErrValue
11 ErrRef
12 ErrName
13 ErrNum
14 ErrNA
15 ErrCircular
16)
17
18func (e ErrKind) String() string {
19 switch e {
20 case ErrDiv0:
21 return "#DIV/0!"
22 case ErrValue:
23 return "#VALUE!"
24 case ErrRef:
25 return "#REF!"
26 case ErrName:
27 return "#NAME?"
28 case ErrNum:
29 return "#NUM!"
30 case ErrNA:
31 return "#N/A"
32 case ErrCircular:
33 return "#CIRCULAR!"
34 }
35 return ""
36}
37