package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v1.0.0
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: May 29, 2021
  
      
  
    License: MIT
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 13
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
      
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
    
Package metainfo support for reading and writing torrent files.
    
- Variables
 
- 
        func NewBytes(info []byte, trackers [][]string, webseeds []string, comment string) ([]byte, error)
 
- 
        func NewInfoBytes(root string, paths []string, private bool, pieceLength uint32, name string, ...) ([]byte, error)
 
- 
          type File
 
- 
          type Info
 
- 
          type MetaInfo
 
  
  
  
    
  Creator is the string that is put into the created torrent by NewBytes function.
  
  
	  
  
  
    
    
    
  NewBytes creates a new torrent metadata file from given information.
  
         
	  
  
  
    
    
    
  NewInfoBytes creates a new Info dictionary by reading and hashing the files on the disk.
  
         
  
  
      
  
  
    
    
    
  File represents a file inside a Torrent.
  
     
      
  
  
    
    
    
  Info contains information about torrent.
    
  
  
    
    
    
  NewInfo returns info from bencoded bytes in b.
  
   
    
  
  
    
    
    
  PieceHash returns the hash of a piece at index.
  
   
  
     
      
  
  
    
    
    
  MetaInfo file dictionary
    
  
  
    
    
    
  New returns a torrent from bencoded stream.
  
   
  
       
      
     
   
        
      
      
        
  
    
      
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.