Skip to content

Commit

Permalink
Update internal data generator templates (#850)
Browse files Browse the repository at this point in the history
- Fix typos
- Update package name
  • Loading branch information
dmitryax authored Apr 20, 2020
1 parent 2e320ca commit 6358a1a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion consumer/pdata/generated_common.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions consumer/pdata/generated_metrics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion consumer/pdata/generated_resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions consumer/pdata/generated_trace.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/data_generator/internal/base_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

const sliceTemplate = `// ${structName} logically represents a slice of ${elementName}.
//
// This is a reference type, if passsed by value and callee modifies it the
// This is a reference type, if passed by value and callee modifies it the
// caller will see the modification.
//
// Must use New${structName} function to create new instances.
Expand Down Expand Up @@ -210,7 +210,7 @@ func fillTest${structName}(tv ${structName}) {

const messageTemplate = `${description}
//
// This is a reference type, if passsed by value and callee modifies it the
// This is a reference type, if passed by value and callee modifies it the
// caller will see the modification.
//
// Must use New${structName} function to create new instances.
Expand Down
2 changes: 1 addition & 1 deletion internal/data_generator/internal/files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6358a1a

Please sign in to comment.