fmt
This commit is contained in:
		
							parent
							
								
									b781d56161
								
							
						
					
					
						commit
						c4b0d5c93d
					
				@ -1,10 +1,10 @@
 | 
				
			|||||||
package main
 | 
					package main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	d "gowebdav"
 | 
					 | 
				
			||||||
	"flag"
 | 
						"flag"
 | 
				
			||||||
	"os"
 | 
					 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
 | 
						d "gowebdav"
 | 
				
			||||||
 | 
						"os"
 | 
				
			||||||
	"strings"
 | 
						"strings"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -54,7 +54,8 @@ func main() {
 | 
				
			|||||||
				fmt.Println(err)
 | 
									fmt.Println(err)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			case "GET": c.Read(path)
 | 
							case "GET":
 | 
				
			||||||
 | 
								c.Read(path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		case "DELETE", "RM", "DEL":
 | 
							case "DELETE", "RM", "DEL":
 | 
				
			||||||
			if err := c.Remove(path); err != nil {
 | 
								if err := c.Remove(path); err != nil {
 | 
				
			||||||
@ -77,14 +78,16 @@ func main() {
 | 
				
			|||||||
				fmt.Println("MkDirAll: " + path)
 | 
									fmt.Println("MkDirAll: " + path)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			default: Fail(nil)
 | 
							default:
 | 
				
			||||||
 | 
								Fail(nil)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	} else if alen == 2 {
 | 
						} else if alen == 2 {
 | 
				
			||||||
		a0 := flag.Args()[0]
 | 
							a0 := flag.Args()[0]
 | 
				
			||||||
		a1 := flag.Args()[1]
 | 
							a1 := flag.Args()[1]
 | 
				
			||||||
		switch *m {
 | 
							switch *m {
 | 
				
			||||||
			default: Fail(nil)
 | 
							default:
 | 
				
			||||||
 | 
								Fail(nil)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		Fail(nil)
 | 
							Fail(nil)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user