mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	Bump cadvisor dependencies to latest head.
This commit is contained in:
		
							
								
								
									
										21
									
								
								vendor/github.com/Azure/go-ansiterm/utilities.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								vendor/github.com/Azure/go-ansiterm/utilities.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| package ansiterm | ||||
|  | ||||
| import ( | ||||
| 	"strconv" | ||||
| ) | ||||
|  | ||||
| func sliceContains(bytes []byte, b byte) bool { | ||||
| 	for _, v := range bytes { | ||||
| 		if v == b { | ||||
| 			return true | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	return false | ||||
| } | ||||
|  | ||||
| func convertBytesToInteger(bytes []byte) int { | ||||
| 	s := string(bytes) | ||||
| 	i, _ := strconv.Atoi(s) | ||||
| 	return i | ||||
| } | ||||
		Reference in New Issue
	
	Block a user