💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
[TOC] ## 三种方式 ``` fmt.Printf("%x\n", sha1.Sum([]byte("123"))) // 40bd001563085fc35165329ea1ff5c5ecbdbbeef hash := sha1.New() hash.Write([]byte("123")) fmt.Printf("%x\n", hash.Sum(nil)) // 40bd001563085fc35165329ea1ff5c5ecbdbbeef fmt.Printf("%s\n", hex.EncodeToString(hash.Sum(nil))) // 40bd001563085fc35165329ea1ff5c5ecbdbbeef ```