mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			210 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			210 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package strings
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// StringInSlice check whether string a is a member of slice.
							 | 
						||
| 
								 | 
							
								func StringInSlice(a string, slice []string) bool {
							 | 
						||
| 
								 | 
							
									for _, b := range slice {
							 | 
						||
| 
								 | 
							
										if b == a {
							 | 
						||
| 
								 | 
							
											return true
							 | 
						||
| 
								 | 
							
										}
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return false
							 | 
						||
| 
								 | 
							
								}
							 |