package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v0.14.1-rc.0
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Jan 16, 2025
  
      
  
    License: GPL-3.0, LGPL-3.0
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 0
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
      
        
          
  
    
      
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
    
Package options provides a generic mechanism for defining configuration of
arbitrary types.
  
  
  
  
  
	  
  
  
    
    
    
  As applies Options to a zero-value T, which it then returns.
  
         
  
  
      
  
  
    
    
    
      type Func[T any] func(*T)
     
  A Func converts a function into an Option, using itself as the Configure
method.
    
  
  
    
    
    
      func (f Func[T]) Configure(t *T)
     
  Configure implements the Option interface.
  
   
  
     
      
  
  
    
    
    
      type Option[T any] interface {
	Configure(*T)
}
     
  An Option configures values of arbitrary type.
  
       
      
     
   
        
      
      
        
  
    
      
      Source Files
      ¶
    
   
      
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.