mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 02:22:26 -05:00 
			
		
		
		
	migrate go version to 1.17 (#203)
* migrate go version to 1.17 * update contributing
This commit is contained in:
		
					parent
					
						
							
								e681aac589
							
						
					
				
			
			
				commit
				
					
						f2e5bedea6
					
				
			
		
					 282 changed files with 11863 additions and 12600 deletions
				
			
		
							
								
								
									
										7
									
								
								vendor/github.com/goccy/go-json/internal/encoder/string.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/goccy/go-json/internal/encoder/string.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -405,7 +405,10 @@ func stringToUint64Slice(s string) []uint64 { | |||
| 	})) | ||||
| } | ||||
| 
 | ||||
| func AppendEscapedString(buf []byte, s string) []byte { | ||||
| func AppendString(ctx *RuntimeContext, buf []byte, s string) []byte { | ||||
| 	if ctx.Option.Flag&HTMLEscapeOption == 0 { | ||||
| 		return appendString(buf, s) | ||||
| 	} | ||||
| 	valLen := len(s) | ||||
| 	if valLen == 0 { | ||||
| 		return append(buf, `""`...) | ||||
|  | @ -531,7 +534,7 @@ ESCAPE_END: | |||
| 	return append(append(buf, s[i:]...), '"') | ||||
| } | ||||
| 
 | ||||
| func AppendString(buf []byte, s string) []byte { | ||||
| func appendString(buf []byte, s string) []byte { | ||||
| 	valLen := len(s) | ||||
| 	if valLen == 0 { | ||||
| 		return append(buf, `""`...) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue