Ver Fonte

Update file.go

Ryan Hollis há 7 anos atrás
pai
commit
c831d95108
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      file.go

+ 2 - 1
file.go

@@ -151,7 +151,8 @@ func (f *File) Write(writer io.Writer) (err error) {
 }
 }
 
 
 // Add a new Sheet, with the provided name, to a File. 
 // Add a new Sheet, with the provided name, to a File. 
-// The maximum sheet name length is 30 characters. If the sheet name length is exceeded an error is thrown
+// The maximum sheet name length is 31 characters. If the sheet name length is exceeded an error is thrown.
+// These special characters are also not allowed: : \ / ? * [ ]
 func (f *File) AddSheet(sheetName string) (*Sheet, error) {
 func (f *File) AddSheet(sheetName string) (*Sheet, error) {
 	if _, exists := f.Sheet[sheetName]; exists {
 	if _, exists := f.Sheet[sheetName]; exists {
 		return nil, fmt.Errorf("duplicate sheet name '%s'.", sheetName)
 		return nil, fmt.Errorf("duplicate sheet name '%s'.", sheetName)