Skip to content

Commit

Permalink
Merge pull request #2 from revisitors/topic_always_b_iteratin
Browse files Browse the repository at this point in the history
updating readme
  • Loading branch information
taotetek committed Aug 23, 2014
2 parents 89f4ea4 + f0c59c0 commit 3bc5c67
Showing 1 changed file with 5 additions and 48 deletions.
53 changes: 5 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,8 @@ var (

```go
type ApiMsg struct {
Content ContentInfo
Meta struct{ Audio ContentInfo }
}
```


#### func NewApiMsgFromJson

```go
func NewApiMsgFromJson(b []byte) (*ApiMsg, error)
```

#### func (*ApiMsg) Json

```go
func (a *ApiMsg) Json() ([]byte, error)
```

#### type ContentInfo

```go
type ContentInfo struct {
Type string
Data []byte
}
```
# gorevisit
--
import "github.com/revisitors/go.revisit.link"


## Usage

```go
var (
ErrNotImplemented = errors.New("not implemented yet")
)
```

#### type ApiMsg

```go
type ApiMsg struct {
Content *Content
Meta *MetaContent
Content *Content `json:"content"`
Meta *MetaContent `json:"meta"`
}
```

Expand All @@ -84,8 +41,8 @@ Json serializes a gorevisit.ApiMsg back to JSON bytes

```go
type Content struct {
Type string
Data string
Type string `json:"type"`
Data string `json:"data"`
}
```

Expand All @@ -95,7 +52,7 @@ Content contains a type and a byte array and should be an image

```go
type MetaContent struct {
Audio *Content
Audio *Content `json:"audio"`
}
```

Expand Down

0 comments on commit 3bc5c67

Please sign in to comment.