mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:42:24 -05:00 
			
		
		
		
	[chore] update go-structr and go-mangler to no longer rely on modern-go/reflect2 (#3026)
* updates go-structr and go-mangler to no longer rely on modern-go/reflect2 (*phew* now we're go1.23 safe) * update go-structr version * bump go-structr to improve memory usage (v. slightly) in certain conditions
This commit is contained in:
		
					parent
					
						
							
								7b1ccbd65a
							
						
					
				
			
			
				commit
				
					
						b93087ceb4
					
				
			
		
					 15 changed files with 346 additions and 490 deletions
				
			
		
							
								
								
									
										8
									
								
								vendor/codeberg.org/gruf/go-structr/util.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/codeberg.org/gruf/go-structr/util.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,5 +1,7 @@ | |||
| package structr | ||||
| 
 | ||||
| import "unsafe" | ||||
| 
 | ||||
| // once only executes 'fn' once. | ||||
| func once(fn func()) func() { | ||||
| 	var once int32 | ||||
|  | @ -11,3 +13,9 @@ func once(fn func()) func() { | |||
| 		fn() | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| // eface_data returns the data ptr from an empty interface. | ||||
| func eface_data(a any) unsafe.Pointer { | ||||
| 	type eface struct{ _, data unsafe.Pointer } | ||||
| 	return (*eface)(unsafe.Pointer(&a)).data | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue