golang 的 rabbitmq 消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 rivejä
157 B

  1. package utils
  2. func ContainerStr(slice []string, element string) bool {
  3. for _, e := range slice {
  4. if e == element {
  5. return true
  6. }
  7. }
  8. return false
  9. }