mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 01:42:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#2315)
This commit is contained in:
		
					parent
					
						
							
								105c65f42c
							
						
					
				
			
			
				commit
				
					
						6fa80f164d
					
				
			
		
					 6 changed files with 37 additions and 10 deletions
				
			
		
							
								
								
									
										11
									
								
								vendor/github.com/google/uuid/CHANGELOG.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/google/uuid/CHANGELOG.md
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,5 +1,16 @@ | |||
| # Changelog | ||||
| 
 | ||||
| ## [1.4.0](https://github.com/google/uuid/compare/v1.3.1...v1.4.0) (2023-10-26) | ||||
| 
 | ||||
| 
 | ||||
| ### Features | ||||
| 
 | ||||
| * UUIDs slice type with Strings() convenience method ([#133](https://github.com/google/uuid/issues/133)) ([cd5fbbd](https://github.com/google/uuid/commit/cd5fbbdd02f3e3467ac18940e07e062be1f864b4)) | ||||
| 
 | ||||
| ### Fixes | ||||
| 
 | ||||
| * Clarify that Parse's job is to parse but not necessarily validate strings. (Documents current behavior) | ||||
| 
 | ||||
| ## [1.3.1](https://github.com/google/uuid/compare/v1.3.0...v1.3.1) (2023-08-18) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										2
									
								
								vendor/github.com/google/uuid/CONTRIBUTING.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/google/uuid/CONTRIBUTING.md
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -11,7 +11,7 @@ please explain why in the pull request description. | |||
| 
 | ||||
| ### Releasing | ||||
| 
 | ||||
| Commits that would precipitate a SemVer change, as desrcibed in the Conventional | ||||
| Commits that would precipitate a SemVer change, as described in the Conventional | ||||
| Commits Specification, will trigger [`release-please`](https://github.com/google-github-actions/release-please-action) | ||||
| to create a release candidate pull request. Once submitted, `release-please` | ||||
| will create a release. | ||||
|  |  | |||
							
								
								
									
										26
									
								
								vendor/github.com/google/uuid/uuid.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								vendor/github.com/google/uuid/uuid.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -56,11 +56,15 @@ func IsInvalidLengthError(err error) bool { | |||
| 	return ok | ||||
| } | ||||
| 
 | ||||
| // Parse decodes s into a UUID or returns an error.  Both the standard UUID | ||||
| // forms of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and | ||||
| // urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx are decoded as well as the | ||||
| // Microsoft encoding {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} and the raw hex | ||||
| // encoding: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. | ||||
| // Parse decodes s into a UUID or returns an error if it cannot be parsed.  Both | ||||
| // the standard UUID forms defined in RFC 4122 | ||||
| // (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and | ||||
| // urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) are decoded.  In addition, | ||||
| // Parse accepts non-standard strings such as the raw hex encoding | ||||
| // xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and 38 byte "Microsoft style" encodings, | ||||
| // e.g.  {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.  Only the middle 36 bytes are | ||||
| // examined in the latter case.  Parse should not be used to validate strings as | ||||
| // it parses non-standard encodings as indicated above. | ||||
| func Parse(s string) (UUID, error) { | ||||
| 	var uuid UUID | ||||
| 	switch len(s) { | ||||
|  | @ -294,3 +298,15 @@ func DisableRandPool() { | |||
| 	poolMu.Lock() | ||||
| 	poolPos = randPoolSize | ||||
| } | ||||
| 
 | ||||
| // UUIDs is a slice of UUID types. | ||||
| type UUIDs []UUID | ||||
| 
 | ||||
| // Strings returns a string slice containing the string form of each UUID in uuids. | ||||
| func (uuids UUIDs) Strings() []string { | ||||
| 	var uuidStrs = make([]string, len(uuids)) | ||||
| 	for i, uuid := range uuids { | ||||
| 		uuidStrs[i] = uuid.String() | ||||
| 	} | ||||
| 	return uuidStrs | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue