mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-19 04:56:32 +09:00
Use JsonOutput in version too
This commit is contained in:
1 parent
9eaac71762
commit
8ad366f977
6 files changed
+14
-30
No files matched your search
@@ -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