Ryan Hollis před 7 roky
rodič
revize
c831d95108
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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. 
-// 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) {
 	if _, exists := f.Sheet[sheetName]; exists {
 		return nil, fmt.Errorf("duplicate sheet name '%s'.", sheetName)