fake

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 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 PrivateMethodStruct

type PrivateMethodStruct struct {
}

func (PrivateMethodStruct) AreYouHungry

func (this PrivateMethodStruct) AreYouHungry() string

func (*PrivateMethodStruct) Happy

func (this *PrivateMethodStruct) Happy() string

type Slice

type Slice []int

func NewSlice

func NewSlice() Slice

func (*Slice) Add

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

func (*Slice) Append

func (this *Slice) Append(elems ...int) int

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