im.go 446 字节
package constant

import "os"

var (
	IM_SERVICE_ADDRESS = "https://api.netease.im/nimserver"
	IM_APP_KEY         = "be7c0639c10e6a69f86ce3b4fa8dc8ec" //"ebf3ae278ee1b346773b99be5080f6a9"
	IM_APP_SECRET      = "9c5b60346613"                     //"67ea92e1ea45"
)

func init() {
	if os.Getenv("IM_APP_KEY") != "" {
		IM_APP_KEY = os.Getenv("IM_APP_KEY")
	}
	if os.Getenv("IM_APP_SECRET") != "" {
		IM_APP_SECRET = os.Getenv("IM_APP_SECRET")
	}
}