當前位置: 首頁>>代碼示例>>Golang>>正文


Golang DialogUi.Msgbox方法代碼示例

本文整理匯總了Golang中github.com/dorzheh/deployer/ui/dialog_ui.DialogUi.Msgbox方法的典型用法代碼示例。如果您正苦於以下問題:Golang DialogUi.Msgbox方法的具體用法?Golang DialogUi.Msgbox怎麽用?Golang DialogUi.Msgbox使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在github.com/dorzheh/deployer/ui/dialog_ui.DialogUi的用法示例。


在下文中一共展示了DialogUi.Msgbox方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: uiShowNumaTopologyHelpMsg

func uiShowNumaTopologyHelpMsg(ui *gui.DialogUi) {
	msg := "CPU Pinning Help\n"
	msg += "----------------\n\n"
	msg += "Example 1 : one to one pinning\n\n"
	msg += " _____________________________________\n"
	msg += "| VA vNUMA ID : 0_____________________|\n"
	msg += "| Host CPU(s) : 0_____________________|\n"
	msg += "|_____________________________________|\n\n"
	msg += " __________________ CPU/NUMA Topology ________________\n"
	msg += "|____________ VA ___________|_________ Host __________|\n"
	msg += "|____ vCPU ___|___ vNUMA ___|_________CPU(s) _________|\n"
	msg += "|______ 0 ____|_____ 0 _____|__________ 0 ____________|\n\n"
	msg += "VA CPU 0 will be pinned to the host CPU 0\n\n\n"
	msg += "Example 2 : pinning to a range of the host CPUs\n\n"
	msg += " _____________________________________\n"
	msg += "| VA vNUMA ID : 0_____________________|\n"
	msg += "| Host CPU(s) : 0-3___________________|\n"
	msg += "|_____________________________________|\n\n"
	msg += " __________________ CPU/NUMA Topology ________________\n"
	msg += "|____________ VA ___________|_________ Host __________|\n"
	msg += "|____ vCPU ___|___ vNUMA ___|_________CPU(s) _________|\n"
	msg += "|______ 0 ____|_____ 0 _____|__________ 0,1,2,3_______|\n\n"
	msg += "VA CPUs will be pinned to the host CPUs 0,1,2 and 3\n\n\n"
	msg += "Example 3 : pinning to a list of the host CPUs\n\n"
	msg += " _____________________________________\n"
	msg += "| VA vNUMA ID : 0_____________________|\n"
	msg += "| Host CPU(s) : 0,1,2,3,8_____________|\n"
	msg += "|_____________________________________|\n\n"
	msg += " __________________ CPU/NUMA Topology ________________\n"
	msg += "|____________ VA ___________|_________ Host __________|\n"
	msg += "|____ vCPU ___|___ vNUMA ___|_________CPU(s) _________|\n"
	msg += "|______ 0 ____|_____ 0 _____|_______ 0,1,2,3,8 _______|\n\n"
	msg += "VA CPUs will be pinned to the host CPUs 0,1,2,3 and 8\n\n"
	ui.Msgbox(msg)
}
開發者ID:weldpua2008,項目名稱:deployer,代碼行數:35,代碼來源:ui.go

示例2: UiWelcomeMsg

// UiWelcomeMsg prints out appropriate welcome message
func UiWelcomeMsg(ui *gui.DialogUi, name string) {
	msg := "Welcome to the " + name + " deployment procedure!"
	ui.SetSize(6, len(msg)+5)
	ui.Msgbox(msg)
}
開發者ID:weldpua2008,項目名稱:deployer,代碼行數:6,代碼來源:ui.go


注:本文中的github.com/dorzheh/deployer/ui/dialog_ui.DialogUi.Msgbox方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。