errors.go 809 B

123456789101112131415161718192021222324
  1. // Copyright 2016 - 2020 The excelize Authors. All rights reserved. Use of
  2. // this source code is governed by a BSD-style license that can be found in
  3. // the LICENSE file.
  4. //
  5. // Package excelize providing a set of functions that allow you to write to
  6. // and read from XLSX files. Support reads and writes XLSX file generated by
  7. // Microsoft Excel™ 2007 and later. Support save file without losing original
  8. // charts of XLSX. This library needs Go version 1.10 or later.
  9. package excelize
  10. import "fmt"
  11. func newInvalidColumnNameError(col string) error {
  12. return fmt.Errorf("invalid column name %q", col)
  13. }
  14. func newInvalidRowNumberError(row int) error {
  15. return fmt.Errorf("invalid row number %d", row)
  16. }
  17. func newInvalidCellNameError(cell string) error {
  18. return fmt.Errorf("invalid cell name %q", cell)
  19. }