initial commits
							parent
							
								
									b54605e98a
								
							
						
					
					
						commit
						ae7875d8e5
					
				
							
								
								
									
										12
									
								
								rootdir.go
								
								
								
								
							
							
						
						
									
										12
									
								
								rootdir.go
								
								
								
								
							| 
						 | 
				
			
			@ -31,6 +31,18 @@ const (
 | 
			
		|||
//	}
 | 
			
		||||
//	
 | 
			
		||||
//	fmt.Printf("The maymoon root-dir is at %q \n", rootDir)
 | 
			
		||||
//
 | 
			
		||||
// One usage for this function is to use the path it returns in HTTPHandler.
 | 
			
		||||
// For example:
 | 
			
		||||
//
 | 
			
		||||
//	rootDir, err := maymoon.RootDir()
 | 
			
		||||
//	if nil != err {
 | 
			
		||||
//		return err
 | 
			
		||||
//	}
 | 
			
		||||
//	
 | 
			
		||||
//	// ...
 | 
			
		||||
//	
 | 
			
		||||
//	var handler http.Handler = maymoon.HTTPHandler(rootDir)
 | 
			
		||||
func RootDir() (string, error) {
 | 
			
		||||
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue