Use sync.OnceValue

This commit is contained in:
Cuong Manh Le
2024-03-21 18:27:25 +07:00
committed by Cuong Manh Le
parent ea4e5147bd
commit 3963fce43b
2 changed files with 7 additions and 14 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
)
func Test_dohOsHeaderValue(t *testing.T) {
val := dohOsHeaderValue()
val := dohOsHeaderValue
if val == "" {
t.Fatalf("empty %s", dohOsHeader)
}