digest := sha512.Sum512(data)
                  
                  
                      return digest[:]
                  
                  
                  }
                  
                  
                  func doesNotCompile(data []byte) []byte {
                  
                  
                      return sha512.Sum512(data)[:]
                  
                  
                  }
                  
                  
                  why?
                  
                  
                
Why what?
 So Fucking Bloodied
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                      
                      
                        
                          So Fucking Bloodied
                          
                        
                      
                    
                    
                    
                    
                      Автор вопроса
                    
                    
                  why must I assign the array to a variable prior to conversion to a slice?
Language specification thing
Looks like you can't take the address of a temporary array value, therefore you can't create a slice
Обсуждают сегодня