eula

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MsgEULAAgreePrompt 询问用户是否同意协议
	MsgEULAAgreePrompt = &i18n.Message{
		ID:    "eula.AgreePrompt",
		Other: "Do you agree to the above terms? (y/n): ",
	}
	// MsgEULADeclined 用户拒绝协议时的提示
	MsgEULADeclined = &i18n.Message{
		ID:    "eula.Declined",
		Other: "You must agree to the End User License Agreement to use this software. Exiting.",
	}
	// MsgEULAInvalidInput 用户输入无效时的提示
	MsgEULAInvalidInput = &i18n.Message{
		ID:    "eula.InvalidInput",
		Other: "Invalid input. Please enter 'y' (yes) or 'n' (no).",
	}
	// MsgEULAUpdated 协议更新时的提示
	MsgEULAUpdated = &i18n.Message{
		ID:    "eula.Updated",
		Other: "The End User License Agreement has been updated. Please review the new terms below:",
	}
)

Functions

func Check

func Check(ctx context.Context, dataRoot string) error

Check 执行 EULA 协议确认检查

func Content

func Content() string

Content 返回内嵌的 EULA 协议内容

func SHA256

func SHA256() string

SHA256 返回当前内嵌 EULA 内容的 SHA256 哈希值

Types

This section is empty.

Jump to

Keyboard shortcuts

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