code: func flattenKVPairs(kvs []*logEntryKV) []interface{} {
  	var result []interface{}
  	for _, kv := range kvs {
  		result = append(result, kv.Key)
  		result = append(result, kv.Value)
  	}
  
  	return result
  }
docs: // flattenKVPairs is used to flatten KVPair slice into []interface{}
  // for hclog consumption.