object-oriented style design #1578
              
  
  Closed
              
          
                  
                    
                      xiaotushaoxia
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 1 reply
-
| Thanks for your feedback. This was duplicate with issue #2. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
// 目前典型的用法
f := excelize.NewFile()
f.SetCellStr(sheet2, fmt.Sprintf("A%d", 1), "a1")
f.SetCellStr(sheet2, fmt.Sprintf("B%d", 1), "b1")
f.SetCellStr(sheet2, fmt.Sprintf("C%d", 1), "c1")
f.SetCellStr(sheet2, fmt.Sprintf("D%d", 1), "d1")
// 为什么没有类似这样的 感觉简洁不少
s := excelize.NewSheet(f, "sheet2")
s.SetCellStr(fmt.Sprintf("A%d", 1), "a1")
s.SetCellStr(fmt.Sprintf("B%d", 1), "b1")
s.SetCellStr(fmt.Sprintf("C%d", 1), "c1")
s.SetCellStr(fmt.Sprintf("D%d", 1), "d1")
Beta Was this translation helpful? Give feedback.
All reactions