config

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoString string = GetEnv("MONGOSTRING")
View Source
var Mongoconn, ErrorMongoconn = helper.MongoConnect(mongoinfo)
View Source
var Origins = []string{
	"http://localhost:8080",
}

Daftar origins yang diizinkan

Functions

func GetEnv

func GetEnv(envName string) string

func SetAccessControlHeaders

func SetAccessControlHeaders(w http.ResponseWriter, r *http.Request) bool

Fungsi untuk mengatur header CORS

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL