feat: initial AWS Server Go SDK
test / go (push) Successful in 1m7s

This commit is contained in:
shiran
2026-08-22 22:14:08 +08:00
commit 3d4c2dbb20
16 changed files with 1272 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package awsserversdk
import (
"encoding/json"
)
// Secret redacts credentials when formatted or marshaled. Reveal must be called explicitly.
type Secret struct{ value string }
func (s Secret) Reveal() string { return s.value }
func (Secret) String() string { return "[REDACTED]" }
func (Secret) GoString() string { return "[REDACTED]" }
func (Secret) MarshalJSON() ([]byte, error) { return json.Marshal("[REDACTED]") }
func (s *Secret) UnmarshalJSON(raw []byte) error { return json.Unmarshal(raw, &s.value) }