mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-24 18:31:33 +01:00
Use JsonOutput in version too
This commit is contained in:
@@ -79,7 +79,7 @@ func loadDerpMap(path string) (*tailcfg.DERPMap, error) {
|
||||
return &derpMap, err
|
||||
}
|
||||
|
||||
func jsonOutput(result interface{}, errResult error, outputFormat string) {
|
||||
func JsonOutput(result interface{}, errResult error, outputFormat string) {
|
||||
var j []byte
|
||||
var err error
|
||||
switch outputFormat {
|
||||
|
||||
Reference in New Issue
Block a user