fake

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrActual       = errors.New("actual")
	ErrElemExsit    = errors.New("elem already exist")
	ErrElemNotExsit = errors.New("elem not exist")
)
View Source
var Marshal = func(v interface{}) ([]byte, error) {
	return nil, nil
}

Functions

func Belong

func Belong(points string, lines []string) bool

func Exec

func Exec(cmd string, args ...string) (string, error)

func ReadLeaf

func ReadLeaf(url string) (string, error)

Types

type Db

type Db interface {
	Retrieve(url string) (string, error)
}

func NewDb

func NewDb(style string) Db

type Etcd

type Etcd struct {
}

func (*Etcd) Retrieve

func (this *Etcd) Retrieve(url string) (string, error)

type Mysql

type Mysql struct {
}

func (*Mysql) Retrieve

func (this *Mysql) Retrieve(url string) (string, error)

type Slice

type Slice []int

func NewSlice

func NewSlice() Slice

func (*Slice) Add

func (this *Slice) Add(elem int) error

func (*Slice) Remove

func (this *Slice) Remove(elem int) error

Jump to

Keyboard shortcuts

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