1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-23 21:44:41 +02:00

update syntax

This commit is contained in:
Asim Aslam
2019-05-31 13:45:28 +01:00
parent 082d0b9f05
commit 1374c5b14a

View File

@@ -30,12 +30,12 @@ func WithChangeSet(cs *source.ChangeSet) source.Option {
} }
} }
// WithJson allows the source data to be set to json // WithJSON allows the source data to be set to json
func WithJson(d []byte) source.Option { func WithJSON(d []byte) source.Option {
return withData(d, "json") return withData(d, "json")
} }
// WithYaml allows the source data to be set to yaml // WithYAML allows the source data to be set to yaml
func WithYaml(d []byte) source.Option { func WithYAML(d []byte) source.Option {
return withData(d, "yaml") return withData(d, "yaml")
} }