dataptr

package module
v0.0.0-...-c802bd5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoDoc Go Report Card

dataptr


Copyright (c) 2020 Institut National de l'Audiovisuel

Documentation

Overview

Package dataptr AFAIRE.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBadType AFAIRE.
	ErrBadType = errors.New("bad type")
	// ErrNotFound AFAIRE.
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type DataPtr

type DataPtr struct {
	// contains filtered or unexported fields
}

DataPtr AFAIRE.

func Empty

func Empty() *DataPtr

Empty AFAIRE.

func FromJSON

func FromJSON(data []byte) (*DataPtr, error)

FromJSON AFAIRE.

func FromYAML

func FromYAML(data []byte) (*DataPtr, error)

FromYAML AFAIRE.

func New

func New(value interface{}) *DataPtr

New AFAIRE.

func (*DataPtr) Bool

func (dp *DataPtr) Bool(keys ...string) (bool, error)

Bool AFAIRE.

func (*DataPtr) DBool

func (dp *DataPtr) DBool(d bool, keys ...string) (bool, error)

DBool AFAIRE.

func (*DataPtr) DDuration

func (dp *DataPtr) DDuration(d time.Duration, keys ...string) (time.Duration, error)

DDuration AFAIRE.

func (*DataPtr) DInt

func (dp *DataPtr) DInt(d int, keys ...string) (int, error)

DInt AFAIRE.

func (*DataPtr) DString

func (dp *DataPtr) DString(d string, keys ...string) (string, error)

DString AFAIRE.

func (*DataPtr) Duration

func (dp *DataPtr) Duration(keys ...string) (time.Duration, error)

Duration AFAIRE.

func (*DataPtr) Get

func (dp *DataPtr) Get(keys ...string) (string, *DataPtr, error)

Get AFAIRE.

func (*DataPtr) Int

func (dp *DataPtr) Int(keys ...string) (int, error)

Int AFAIRE.

func (*DataPtr) MapString

func (dp *DataPtr) MapString(keys ...string) (map[string]*DataPtr, error)

MapString AFAIRE.

func (*DataPtr) MaybeGet

func (dp *DataPtr) MaybeGet(keys ...string) (*DataPtr, error)

MaybeGet AFAIRE.

func (*DataPtr) Slice

func (dp *DataPtr) Slice(keys ...string) ([]*DataPtr, error)

Slice AFAIRE.

func (*DataPtr) String

func (dp *DataPtr) String(keys ...string) (string, error)

String AFAIRE.

func (*DataPtr) Value

func (dp *DataPtr) Value() interface{}

Value AFAIRE.

Jump to

Keyboard shortcuts

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