From 127e2c39acd1ce19a90aa91640eb2b594c4b4144 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Feb 2025 00:46:11 +0800 Subject: *.go: Reformat --- http_global.go | 4 ++-- ssh_utils.go | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/http_global.go b/http_global.go index 3e06171..e7ee580 100644 --- a/http_global.go +++ b/http_global.go @@ -1,6 +1,6 @@ package main -var global_data = map[string]any { - "server_public_key_string": &server_public_key_string, +var global_data = map[string]any{ + "server_public_key_string": &server_public_key_string, "server_public_key_fingerprint": &server_public_key_fingerprint, } diff --git a/ssh_utils.go b/ssh_utils.go index a08e20c..fb23db6 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -11,9 +11,11 @@ import ( go_ssh "golang.org/x/crypto/ssh" ) -var server_public_key_string string -var server_public_key_fingerprint string -var server_public_key go_ssh.PublicKey +var ( + server_public_key_string string + server_public_key_fingerprint string + server_public_key go_ssh.PublicKey +) func serve_ssh() error { host_key_bytes, err := os.ReadFile(config.SSH.Key) -- cgit v1.2.3