mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:22:25 -05:00 
			
		
		
		
	Upstep Go dependencies (#340)
* Upstep Go dependencies * tiny linter fix * Tidy
This commit is contained in:
		
					parent
					
						
							
								5506a5ecbe
							
						
					
				
			
			
				commit
				
					
						67ac8db190
					
				
			
		
					 160 changed files with 248601 additions and 232400 deletions
				
			
		
							
								
								
									
										4
									
								
								vendor/github.com/mitchellh/mapstructure/CHANGELOG.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/mitchellh/mapstructure/CHANGELOG.md
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,3 +1,7 @@ | |||
| ## 1.4.3 | ||||
| 
 | ||||
| * Fix cases where `json.Number` didn't decode properly [GH-261] | ||||
| 
 | ||||
| ## 1.4.2 | ||||
| 
 | ||||
| * Custom name matchers to support any sort of casing, formatting, etc. for | ||||
|  |  | |||
							
								
								
									
										8
									
								
								vendor/github.com/mitchellh/mapstructure/mapstructure.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/mitchellh/mapstructure/mapstructure.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -684,16 +684,12 @@ func (d *Decoder) decodeUint(name string, data interface{}, val reflect.Value) e | |||
| 		} | ||||
| 	case dataType.PkgPath() == "encoding/json" && dataType.Name() == "Number": | ||||
| 		jn := data.(json.Number) | ||||
| 		i, err := jn.Int64() | ||||
| 		i, err := strconv.ParseUint(string(jn), 0, 64) | ||||
| 		if err != nil { | ||||
| 			return fmt.Errorf( | ||||
| 				"error decoding json.Number into %s: %s", name, err) | ||||
| 		} | ||||
| 		if i < 0 && !d.config.WeaklyTypedInput { | ||||
| 			return fmt.Errorf("cannot parse '%s', %d overflows uint", | ||||
| 				name, i) | ||||
| 		} | ||||
| 		val.SetUint(uint64(i)) | ||||
| 		val.SetUint(i) | ||||
| 	default: | ||||
| 		return fmt.Errorf( | ||||
| 			"'%s' expected type '%s', got unconvertible type '%s', value: '%v'", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue