Skip to content

Commit

Permalink
Fix README spaces vs tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrannajaryan committed Oct 12, 2021
1 parent af5be06 commit 05dc4de
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions schema/README.md
Expand Up @@ -13,19 +13,19 @@ import schema "go.opentelemetry.io/otel/schema/v1.0"

// Load the schema from a file in v1.0.x file format.
func loadSchemaFromFile() error {
telSchema, err := schema.ParseFile("schema-file.yaml")
if err != nil {
return err
}
// Use telSchema struct here.
telSchema, err := schema.ParseFile("schema-file.yaml")
if err != nil {
return err
}
// Use telSchema struct here.
}

// Alternatively use schema.Parse to read the schema file from io.Reader.
func loadSchemaFromReader(r io.Reader) error {
telSchema, err := schema.Parse(r)
if err != nil {
return err
}
// Use telSchema struct here.
telSchema, err := schema.Parse(r)
if err != nil {
return err
}
// Use telSchema struct here.
}
```

0 comments on commit 05dc4de

Please sign in to comment.