我在Go应用程序中使用logrus.我相信这个问题也适用于任何其他日志包(它不提供基于外部文件的配置).
logrus提供了设置各种配置的功能,例如SetOutput,SetLevel等.
像我需要从多个源文件/包中进行日志记录的任何其他应用程序一样,您似乎需要使用logrus在每个文件中设置这些选项.
有没有办法在中心位置设置这些选项,以便在整个应用程序中共享.这样,如果我必须进行日志记录级别更改,我可以在一个地方执行此操作并应用于应用程序的所有组件.
我在OAuth同意屏幕(网址:https : //console.cloud.google.com/apis/credentials/consent)上错误地添加了应用程序徽标,现在显示我的同意屏幕需要Google验证。
有什么方法可以从同意屏幕中删除应用程序徽标?
Edit: I didn't make it clear before but I wanted to remove the logo to get rid of the verification notice.
我的数据结构
{
"group": "fruits"
"items": ["apple", "orange", "banana"]
}
Run Code Online (Sandbox Code Playgroud)
我需要在不知道值的情况下从"items"数组中提取第一项.可能吗?