Browse Source

test on Go 1.5 on Travis CI and update docs for the CalcCellValue

xuri 5 years ago
parent
commit
3cf3101fd9
2 changed files with 14 additions and 0 deletions
  1. 1 0
      .travis.yml
  2. 13 0
      calc.go

+ 1 - 0
.travis.yml

@@ -8,6 +8,7 @@ go:
   - 1.12.x
   - 1.12.x
   - 1.13.x
   - 1.13.x
   - 1.14.x
   - 1.14.x
+  - 1.15.x
 
 
 os:
 os:
   - linux
   - linux

+ 13 - 0
calc.go

@@ -96,6 +96,19 @@ type formulaFuncs struct{}
 // CalcCellValue provides a function to get calculated cell value. This
 // CalcCellValue provides a function to get calculated cell value. This
 // feature is currently in working processing. Array formula, table formula
 // feature is currently in working processing. Array formula, table formula
 // and some other formulas are not supported currently.
 // and some other formulas are not supported currently.
+//
+// Supported formulas:
+//
+//    ABS, ACOS, ACOSH, ACOT, ACOTH, ARABIC, ASIN, ASINH, ATAN2, ATANH, BASE,
+//    CEILING, CEILING.MATH, CEILING.PRECISE, COMBIN, COMBINA, COS, COSH, COT,
+//    COTH, COUNTA, CSC, CSCH, DECIMAL, DEGREES, EVEN, EXP, FACT, FACTDOUBLE,
+//    FLOOR, FLOOR.MATH, FLOOR.PRECISE, GCD, INT, ISBLANK, ISERR, ISERROR,
+//    ISEVEN, ISNA, ISNONTEXT, ISNUMBER, ISO.CEILING, ISODD, LCM, LN, LOG,
+//    LOG10, MDETERM, MEDIAN, MOD, MROUND, MULTINOMIAL, MUNIT, NA, ODD, PI,
+//    POWER, PRODUCT, QUOTIENT, RADIANS, RAND, RANDBETWEEN, ROUND, ROUNDDOWN,
+//    ROUNDUP, SEC, SECH, SIGN, SIN, SINH, SQRT, SQRTPI, SUM, SUMIF, SUMSQ,
+//    TAN, TANH, TRUNC
+//
 func (f *File) CalcCellValue(sheet, cell string) (result string, err error) {
 func (f *File) CalcCellValue(sheet, cell string) (result string, err error) {
 	var (
 	var (
 		formula string
 		formula string