MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / printYAML

Function printYAML

pkg/config/example/example.go:99–107  ·  view source on GitHub ↗

printYAML prints the nested config struct.

(in any)

Source from the content-addressed store, hash-verified

97
98// printYAML prints the nested config struct.
99func printYAML(in any) error {
100 bs, err := yaml.Marshal(in)
101 if err != nil {
102 return err
103 }
104
105 fmt.Print(string(bs))
106 return nil
107}

Callers 1

example.goFile · 0.85

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected