// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

package zap

import (
	

	
)

// Array constructs a field with the given key and ArrayMarshaler. It provides
// a flexible, but still type-safe and efficient, way to add array-like types
// to the logging context. The struct's MarshalLogArray method is called lazily.
func ( string,  zapcore.ArrayMarshaler) Field {
	return Field{Key: , Type: zapcore.ArrayMarshalerType, Interface: }
}

// Bools constructs a field that carries a slice of bools.
func ( string,  []bool) Field {
	return Array(, bools())
}

// ByteStrings constructs a field that carries a slice of []byte, each of which
// must be UTF-8 encoded text.
func ( string,  [][]byte) Field {
	return Array(, byteStringsArray())
}

// Complex128s constructs a field that carries a slice of complex numbers.
func ( string,  []complex128) Field {
	return Array(, complex128s())
}

// Complex64s constructs a field that carries a slice of complex numbers.
func ( string,  []complex64) Field {
	return Array(, complex64s())
}

// Durations constructs a field that carries a slice of time.Durations.
func ( string,  []time.Duration) Field {
	return Array(, durations())
}

// Float64s constructs a field that carries a slice of floats.
func ( string,  []float64) Field {
	return Array(, float64s())
}

// Float32s constructs a field that carries a slice of floats.
func ( string,  []float32) Field {
	return Array(, float32s())
}

// Ints constructs a field that carries a slice of integers.
func ( string,  []int) Field {
	return Array(, ints())
}

// Int64s constructs a field that carries a slice of integers.
func ( string,  []int64) Field {
	return Array(, int64s())
}

// Int32s constructs a field that carries a slice of integers.
func ( string,  []int32) Field {
	return Array(, int32s())
}

// Int16s constructs a field that carries a slice of integers.
func ( string,  []int16) Field {
	return Array(, int16s())
}

// Int8s constructs a field that carries a slice of integers.
func ( string,  []int8) Field {
	return Array(, int8s())
}

// Strings constructs a field that carries a slice of strings.
func ( string,  []string) Field {
	return Array(, stringArray())
}

// Times constructs a field that carries a slice of time.Times.
func ( string,  []time.Time) Field {
	return Array(, times())
}

// Uints constructs a field that carries a slice of unsigned integers.
func ( string,  []uint) Field {
	return Array(, uints())
}

// Uint64s constructs a field that carries a slice of unsigned integers.
func ( string,  []uint64) Field {
	return Array(, uint64s())
}

// Uint32s constructs a field that carries a slice of unsigned integers.
func ( string,  []uint32) Field {
	return Array(, uint32s())
}

// Uint16s constructs a field that carries a slice of unsigned integers.
func ( string,  []uint16) Field {
	return Array(, uint16s())
}

// Uint8s constructs a field that carries a slice of unsigned integers.
func ( string,  []uint8) Field {
	return Array(, uint8s())
}

// Uintptrs constructs a field that carries a slice of pointer addresses.
func ( string,  []uintptr) Field {
	return Array(, uintptrs())
}

// Errors constructs a field that carries a slice of errors.
func ( string,  []error) Field {
	return Array(, errArray())
}

type bools []bool

func ( bools) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendBool([])
	}
	return nil
}

type byteStringsArray [][]byte

func ( byteStringsArray) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendByteString([])
	}
	return nil
}

type complex128s []complex128

func ( complex128s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendComplex128([])
	}
	return nil
}

type complex64s []complex64

func ( complex64s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendComplex64([])
	}
	return nil
}

type durations []time.Duration

func ( durations) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendDuration([])
	}
	return nil
}

type float64s []float64

func ( float64s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendFloat64([])
	}
	return nil
}

type float32s []float32

func ( float32s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendFloat32([])
	}
	return nil
}

type ints []int

func ( ints) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendInt([])
	}
	return nil
}

type int64s []int64

func ( int64s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendInt64([])
	}
	return nil
}

type int32s []int32

func ( int32s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendInt32([])
	}
	return nil
}

type int16s []int16

func ( int16s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendInt16([])
	}
	return nil
}

type int8s []int8

func ( int8s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendInt8([])
	}
	return nil
}

type stringArray []string

func ( stringArray) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendString([])
	}
	return nil
}

type times []time.Time

func ( times) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendTime([])
	}
	return nil
}

type uints []uint

func ( uints) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendUint([])
	}
	return nil
}

type uint64s []uint64

func ( uint64s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendUint64([])
	}
	return nil
}

type uint32s []uint32

func ( uint32s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendUint32([])
	}
	return nil
}

type uint16s []uint16

func ( uint16s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendUint16([])
	}
	return nil
}

type uint8s []uint8

func ( uint8s) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendUint8([])
	}
	return nil
}

type uintptrs []uintptr

func ( uintptrs) ( zapcore.ArrayEncoder) error {
	for  := range  {
		.AppendUintptr([])
	}
	return nil
}