mirror of
				https://github.com/beego/bee.git
				synced 2025-11-04 14:33:24 +00:00 
			
		
		
		
	Go docs advise to use strings.HasPrefix.
This commit is contained in:
		
							
								
								
									
										2
									
								
								new.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								new.go
									
									
									
									
									
								
							@@ -58,7 +58,7 @@ func createApp(cmd *Command, args []string) {
 | 
			
		||||
	for _, wg := range wgopath {
 | 
			
		||||
		wg = path.Join(wg, "src")
 | 
			
		||||
 | 
			
		||||
		if path.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
 | 
			
		||||
		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
 | 
			
		||||
			haspath = true
 | 
			
		||||
			appsrcpath = wg
 | 
			
		||||
			break
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user