Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 -o url,导出为url格式时,每行末尾有个多余空白符。 #77

Open
jjf012 opened this issue Jun 23, 2024 · 1 comment

Comments

@jjf012
Copy link

jjf012 commented Jun 23, 2024

保存的文件,用everedit打开可以看到末尾的空白符。
使用其他工具进行接力时,有可能读不出来url了。

@M09Ic
Copy link
Contributor

M09Ic commented Jun 28, 2024

func (result *GOGOResult) ValuesOutput(outType string) string {
	outs := strings.Split(outType, ",")
	for i, out := range outs {
		outs[i] = result.Get(out)
	}
	return strings.Join(outs, "\t") + "\n"
}
func (result *GOGOResult) GetBaseURL() string {
	return fmt.Sprintf("%s://%s:%s", result.Protocol, result.Ip, result.Port)
}

我检查了这两个函数, 似乎并没有看到输出空白字符的地方. 是否能提供测试用例?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants