You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: application.go
    path of file: ./repos/Tigo/web
    
    the code of the file until where you have to start completion: // Package web 框架的基本功能包，此包包含了搭建服务的基础功能
package web

import (
	"fmt"
	"github.com/fvbock/endless"
	"github.com/gorilla/mux"
	"github.com/jpillora/overseer"
	"github.com/jpillora/overseer/fetcher"
	"github.com/karldoenitz/Tigo/logge
    
func (application *Application) InitApp() {
	// 初始化全局变量
	if application.ConfigPath != "" {
		InitGlobalConfig(application.ConfigPath)
	}
	if globalConfig != nil && globalConfig.IP != "" {
		application.IPAddress = globalConfig.IP
	}
	if globalConfig != nil && globalConfig.Port != 0 {
		application.Port = globalConfig.Port
	}
	// url挂载
	urlPattern := UrlPattern{UrlPatterns: application.UrlPatterns, router: application.muxRouter}
	urlPattern.Init()
}