decoder

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package decoder implements cache decoders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringDecoder

type StringDecoder struct{}

StringDecoder decodes a string into various types.

func (StringDecoder) Bool

func (d StringDecoder) Bool(v interface{}) (bool, error)

Bool coverts a string to a boolean.

func (StringDecoder) Bytes

func (d StringDecoder) Bytes(v interface{}) ([]byte, error)

Bytes converts a string to bytes.

func (StringDecoder) Float64

func (d StringDecoder) Float64(v interface{}) (float64, error)

Float64 converts a string to a float64.

func (StringDecoder) Int64

func (d StringDecoder) Int64(v interface{}) (int64, error)

Int64 converts a string to an int64.

func (StringDecoder) String

func (d StringDecoder) String(v interface{}) (string, error)

String converts a string to a string.

func (StringDecoder) Uint64

func (d StringDecoder) Uint64(v interface{}) (uint64, error)

Uint64 converts a string to a uint64.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL