void Main() { string str = "A-A01A05-A01-01-02"; byte[] data = new byte[16]; var span = data.AsSpan(); ulong l = 0; int index = 1[......]继续阅读

2023年2月13日 0条评论 2702点热度 3人点赞 痴者工良 阅读全文

void Main() { string str = "A-A01A05-A01-01-02"; byte[] data = new byte[16]; var span = data.AsSpan(); ulong l = 0; int index = 1; i[......]继续阅读

2023年2月13日 0条评论 82点热度 3人点赞 痴者工良 阅读全文

连接 如果不想对外暴露密码,可以自行写一个 AuthorizationHeader,只使用 Base64 处理后的 Basic 认证密钥。 using Elastic.Clients.Elasticsearch; using Elastic.Transport; public class Prog[......]继续阅读

2022年12月29日 0条评论 2969点热度 0人点赞 痴者工良 阅读全文

Connection If you don't want to expose the password, you can create your own AuthorizationHeader and use only the Base64 encoded Basic authentication[......] 继续阅读

2022年12月29日 0条评论 78点热度 0人点赞 痴者工良 阅读全文

建立链路 SDK 官方仓库地址: https://github.com/open-telemetry/opentelemetry-go 设计一个这样的执行流程: Run 先后执行 Run1、Run2: a.Run1(newCtx) a.Run2(newCtx) Run1 中,还执行[......] 继续阅读

2022年11月20日 0条评论 4014点热度 1人点赞 痴者工良 阅读全文

Establishing Link SDK Official Repository Address: https://github.com/open-telemetry/opentelemetry-go Design an execution flow like this: Run execute[......] 继续阅读

2022年11月20日 0条评论 106点热度 1人点赞 痴者工良 阅读全文

Using inheritance has the drawback that adding functionality requires changes in both the upper and lower layers. At the same time, it is necessary to[......] 继续阅读

2020年5月8日 0条评论 74点热度 0人点赞 痴者工良 阅读全文

使用继承的的方式,缺点是添加功能是,上下层都需要改变; 同时为了避免为外界透露细节; 松耦合,避免两者出现静态的联系; 有接口和实现如下: public interface ITest { void A(); void B(); }[......]继续阅读

2020年5月8日 0条评论 3180点热度 0人点赞 痴者工良 阅读全文