Versions in this module Expand all Collapse all v0 v0.0.2 May 25, 2024 Changes in this version + func Bool(val string) (bool, error) + func BoolSlice(val, sep string) ([]bool, error) + func BoolValue(val string) (*wrapperspb.BoolValue, error) + func Bytes(val string) ([]byte, error) + func BytesSlice(val, sep string) ([][]byte, error) + func BytesValue(val string) (*wrapperspb.BytesValue, error) + func DoubleValue(val string) (*wrapperspb.DoubleValue, error) + func Duration(val string) (*durationpb.Duration, error) + func Enum(val string, enumValMap map[string]int32) (int32, error) + func EnumSlice(val, sep string, enumValMap map[string]int32) ([]int32, error) + func Float32(val string) (float32, error) + func Float32Slice(val, sep string) ([]float32, error) + func Float64(val string) (float64, error) + func Float64Slice(val, sep string) ([]float64, error) + func FloatValue(val string) (*wrapperspb.FloatValue, error) + func Int32(val string) (int32, error) + func Int32Slice(val, sep string) ([]int32, error) + func Int32Value(val string) (*wrapperspb.Int32Value, error) + func Int64(val string) (int64, error) + func Int64Slice(val, sep string) ([]int64, error) + func Int64Value(val string) (*wrapperspb.Int64Value, error) + func String(val string) (string, error) + func StringSlice(val, sep string) ([]string, error) + func StringValue(val string) (*wrapperspb.StringValue, error) + func Timestamp(val string) (*timestamppb.Timestamp, error) + func UInt32Value(val string) (*wrapperspb.UInt32Value, error) + func UInt64Value(val string) (*wrapperspb.UInt64Value, error) + func Uint32(val string) (uint32, error) + func Uint32Slice(val, sep string) ([]uint32, error) + func Uint64(val string) (uint64, error) + func Uint64Slice(val, sep string) ([]uint64, error) + type Decoder interface + Decode func(v any) error + type DecoderFunc func(v any) error + func (f DecoderFunc) Decode(v any) error + type Encoder interface + Encode func(v any) error + type EncoderFunc func(v any) error + func (f EncoderFunc) Encode(v any) error + type FormCodec interface + Decode func(vs url.Values, v any) error + Encode func(v any) (url.Values, error) + type FormMarshaler interface + type Marshaler interface + ContentType func(v any) string + Marshal func(v any) ([]byte, error) + NewDecoder func(r io.Reader) Decoder + NewEncoder func(w io.Writer) Encoder + Unmarshal func(data []byte, v any) error + type UriEncoder interface + EncodeURL func(pathTemplate string, v any, needQuery bool) string + type UriMarshaler interface