<!-- Code generated by gomarkdoc. DO NOT EDIT -->

```go
import "github.com/Azure/iot-operations-sdks/go/protocol/iso"
```

## Index

- [type ByteSlice](<#ByteSlice>)
  - [func \(bs ByteSlice\) MarshalText\(\) \(\[\]byte, error\)](<#ByteSlice.MarshalText>)
  - [func \(bs ByteSlice\) String\(\) string](<#ByteSlice.String>)
  - [func \(bs \*ByteSlice\) UnmarshalText\(b \[\]byte\) error](<#ByteSlice.UnmarshalText>)
- [type Date](<#Date>)
  - [func \(d Date\) MarshalText\(\) \(\[\]byte, error\)](<#Date.MarshalText>)
  - [func \(d Date\) String\(\) string](<#Date.String>)
  - [func \(d \*Date\) UnmarshalText\(b \[\]byte\) error](<#Date.UnmarshalText>)
- [type DateTime](<#DateTime>)
  - [func \(dt DateTime\) MarshalText\(\) \(\[\]byte, error\)](<#DateTime.MarshalText>)
  - [func \(dt DateTime\) String\(\) string](<#DateTime.String>)
  - [func \(dt \*DateTime\) UnmarshalText\(b \[\]byte\) error](<#DateTime.UnmarshalText>)
- [type Duration](<#Duration>)
  - [func \(d Duration\) MarshalText\(\) \(\[\]byte, error\)](<#Duration.MarshalText>)
  - [func \(d Duration\) String\(\) string](<#Duration.String>)
  - [func \(d \*Duration\) UnmarshalText\(b \[\]byte\) error](<#Duration.UnmarshalText>)
- [type Time](<#Time>)
  - [func \(t Time\) MarshalText\(\) \(\[\]byte, error\)](<#Time.MarshalText>)
  - [func \(t Time\) String\(\) string](<#Time.String>)
  - [func \(t \*Time\) UnmarshalText\(b \[\]byte\) error](<#Time.UnmarshalText>)


<a name="ByteSlice"></a>
## type [ByteSlice](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L31>)

ByteSlice is a wrapper for the native Go byte slice that will serialize to Base64.

```go
type ByteSlice []byte
```

<a name="ByteSlice.MarshalText"></a>
### func \(ByteSlice\) [MarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L132>)

```go
func (bs ByteSlice) MarshalText() ([]byte, error)
```

MarshalText marshals the byte slice to a Base64 string.

<a name="ByteSlice.String"></a>
### func \(ByteSlice\) [String](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L127>)

```go
func (bs ByteSlice) String() string
```

String returns the byte slice as a Base64 string.

<a name="ByteSlice.UnmarshalText"></a>
### func \(\*ByteSlice\) [UnmarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L137>)

```go
func (bs *ByteSlice) UnmarshalText(b []byte) error
```

UnmarshalText unmarshals the byte slice from a Base64 string.

<a name="Date"></a>
## type [Date](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L18>)

Date is a date in ISO 8601 format, per RFC 3339.

```go
type Date time.Time
```

<a name="Date.MarshalText"></a>
### func \(Date\) [MarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L46>)

```go
func (d Date) MarshalText() ([]byte, error)
```

MarshalText marshals the date to an ISO 8601 string.

<a name="Date.String"></a>
### func \(Date\) [String](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L41>)

```go
func (d Date) String() string
```

String returns the date as an ISO 8601 string.

<a name="Date.UnmarshalText"></a>
### func \(\*Date\) [UnmarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L51>)

```go
func (d *Date) UnmarshalText(b []byte) error
```

UnmarshalText unmarshals the date from an ISO 8601 string.

<a name="DateTime"></a>
## type [DateTime](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L21>)

DateTime is a date and time in ISO 8601 format, per RFC 3339.

```go
type DateTime time.Time
```

<a name="DateTime.MarshalText"></a>
### func \(DateTime\) [MarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L69>)

```go
func (dt DateTime) MarshalText() ([]byte, error)
```

MarshalText marshals the date\-time to an ISO 8601 string.

<a name="DateTime.String"></a>
### func \(DateTime\) [String](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L64>)

```go
func (dt DateTime) String() string
```

String returns the date\-time as an ISO 8601 string.

<a name="DateTime.UnmarshalText"></a>
### func \(\*DateTime\) [UnmarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L74>)

```go
func (dt *DateTime) UnmarshalText(b []byte) error
```

UnmarshalText unmarshals the date\-time from an ISO 8601 string.

<a name="Duration"></a>
## type [Duration](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L24>)

Duration is a duration in ISO 8601 format.

```go
type Duration time.Duration
```

<a name="Duration.MarshalText"></a>
### func \(Duration\) [MarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L89>)

```go
func (d Duration) MarshalText() ([]byte, error)
```

MarshalText marshals the duration to an ISO 8601 string.

<a name="Duration.String"></a>
### func \(Duration\) [String](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L84>)

```go
func (d Duration) String() string
```

String returns the duration as an ISO 8601 string.

<a name="Duration.UnmarshalText"></a>
### func \(\*Duration\) [UnmarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L94>)

```go
func (d *Duration) UnmarshalText(b []byte) error
```

UnmarshalText unmarshals the duration from an ISO 8601 string.

<a name="Time"></a>
## type [Time](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L27>)

Time is a time in ISO 8601 format, per RFC 3339.

```go
type Time time.Time
```

<a name="Time.MarshalText"></a>
### func \(Time\) [MarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L109>)

```go
func (t Time) MarshalText() ([]byte, error)
```

MarshalText marshals the time to an ISO 8601 string.

<a name="Time.String"></a>
### func \(Time\) [String](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L104>)

```go
func (t Time) String() string
```

String returns the time as an ISO 8601 string.

<a name="Time.UnmarshalText"></a>
### func \(\*Time\) [UnmarshalText](<https://github.com/Azure/iot-operations-sdks/blob/main/go/protocol/iso/types.go#L114>)

```go
func (t *Time) UnmarshalText(b []byte) error
```

UnmarshalText unmarshals the time from an ISO 8601 string.

Generated by [gomarkdoc](<https://github.com/princjef/gomarkdoc>)
