mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Make markdown as an independent module
This commit is contained in:
		| @@ -4,27 +4,8 @@ | ||||
|  | ||||
| package base | ||||
|  | ||||
| import ( | ||||
| 	"os" | ||||
| 	"os/exec" | ||||
| 	"path/filepath" | ||||
| ) | ||||
|  | ||||
| const DOC_URL = "https://github.com/gogits/go-gogs-client/wiki" | ||||
|  | ||||
| type ( | ||||
| 	TplName string | ||||
| ) | ||||
|  | ||||
| // ExecPath returns the executable path. | ||||
| func ExecPath() (string, error) { | ||||
| 	file, err := exec.LookPath(os.Args[0]) | ||||
| 	if err != nil { | ||||
| 		return "", err | ||||
| 	} | ||||
| 	p, err := filepath.Abs(file) | ||||
| 	if err != nil { | ||||
| 		return "", err | ||||
| 	} | ||||
| 	return p, nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user