czk %!s(int64=4) %!d(string=hai) anos
pai
achega
1f32f4aa85
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      http/param/url.go

+ 11 - 0
http/param/url.go

@@ -0,0 +1,11 @@
+package param
+
+import "context"
+
+func GetHttpsUrl(c context.Context) string {
+	httpsUrl := c.Value("https_url")
+	if _, ok := httpsUrl.(string); ok {
+		return httpsUrl.(string)
+	}
+	return ""
+}