Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Regenerate README and make minor style improvement (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Mar 8, 2018
1 parent 495804e commit 2ecd8d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,12 @@ i.e. no grouping by tag.

[embedmd]:# (stats.go view)
```go
err = view.Subscribe(&view.View{
if err = view.Subscribe(&view.View{
Name: "my.org/video_size_distribution",
Description: "distribution of processed video size over time",
Measure: videoSize,
Aggregation: view.DistributionAggregation{0, 1 << 32, 2 << 32, 3 << 32},
})
if err != nil {
Aggregation: view.DistributionAggregation([]float64{0, 1 << 32, 2 << 32, 3 << 32}),
}); err != nil {
log.Fatalf("Failed to subscribe to view: %v", err)
}
```
Expand Down
7 changes: 3 additions & 4 deletions internal/readme/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ func statsExamples() {
_, _, _, _ = distAgg, countAgg, sumAgg, meanAgg

// START view
err = view.Subscribe(&view.View{
if err = view.Subscribe(&view.View{
Name: "my.org/video_size_distribution",
Description: "distribution of processed video size over time",
Measure: videoSize,
Aggregation: view.DistributionAggregation{0, 1 << 32, 2 << 32, 3 << 32},
})
if err != nil {
Aggregation: view.DistributionAggregation([]float64{0, 1 << 32, 2 << 32, 3 << 32}),
}); err != nil {
log.Fatalf("Failed to subscribe to view: %v", err)
}
// END view
Expand Down

0 comments on commit 2ecd8d9

Please sign in to comment.