mirror of
				https://github.com/beego/bee.git
				synced 2025-10-30 21:03:22 +00:00 
			
		
		
		
	fix data
This commit is contained in:
		
							
								
								
									
										2
									
								
								fix.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								fix.go
									
									
									
									
									
								
							| @@ -162,6 +162,8 @@ func fixFile(file string) error { | ||||
| 	fixed = pareg.ReplaceAllString(fixed, "Input.Param(\"$2\")") | ||||
| 	pareg = regexp.MustCompile(`(Input.Data\[\")(.*)(\"\])(\s)(=)(\s)(.*)`) | ||||
| 	fixed = pareg.ReplaceAllString(fixed, "Input.SetData(\"$2\", $7)") | ||||
| 	pareg = regexp.MustCompile(`(Input.Data\[\")(.*)(\"\])`) | ||||
| 	fixed = pareg.ReplaceAllString(fixed, "Input.Data(\"$2\")") | ||||
| 	// replace the v.Apis in docs.go | ||||
| 	if strings.Contains(file, "docs.go") { | ||||
| 		fixed = strings.Replace(fixed, "v.Apis", "v.APIs", -1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 astaxie
					astaxie