mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-01 00:23:56 +08:00 
			
		
		
		
	build(deps): Bump golang.org/x/net from 0.5.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
		
							
								
								
									
										14
									
								
								vendor/golang.org/x/sys/windows/syscall_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/golang.org/x/sys/windows/syscall_windows.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -10,7 +10,6 @@ import ( | ||||
| 	errorspkg "errors" | ||||
| 	"fmt" | ||||
| 	"runtime" | ||||
| 	"strings" | ||||
| 	"sync" | ||||
| 	"syscall" | ||||
| 	"time" | ||||
| @@ -87,22 +86,13 @@ func StringToUTF16(s string) []uint16 { | ||||
| // s, with a terminating NUL added. If s contains a NUL byte at any | ||||
| // location, it returns (nil, syscall.EINVAL). | ||||
| func UTF16FromString(s string) ([]uint16, error) { | ||||
| 	if strings.IndexByte(s, 0) != -1 { | ||||
| 		return nil, syscall.EINVAL | ||||
| 	} | ||||
| 	return utf16.Encode([]rune(s + "\x00")), nil | ||||
| 	return syscall.UTF16FromString(s) | ||||
| } | ||||
|  | ||||
| // UTF16ToString returns the UTF-8 encoding of the UTF-16 sequence s, | ||||
| // with a terminating NUL and any bytes after the NUL removed. | ||||
| func UTF16ToString(s []uint16) string { | ||||
| 	for i, v := range s { | ||||
| 		if v == 0 { | ||||
| 			s = s[:i] | ||||
| 			break | ||||
| 		} | ||||
| 	} | ||||
| 	return string(utf16.Decode(s)) | ||||
| 	return syscall.UTF16ToString(s) | ||||
| } | ||||
|  | ||||
| // StringToUTF16Ptr is deprecated. Use UTF16PtrFromString instead. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) dependabot[bot]
					dependabot[bot]