• Trending
  • New
  • Hot
  • Likers
LoginSign up

ycuzjj (50.89 Elementary)

No followers3 postsNot following anybody

Joined December 2020

  • Blog
  • Comments
  • Replies
  • 0
  • Rewards
    • Curation rewards
    • Author rewards
  • Wallet

Blog


Hide Resteems
  • ycuzjj (50)in golang • 4 years ago

    Go里面的循环依赖

    循环依赖本质上一次错误的设计,在go里面,直接把它作为了一个编译时的错误。 package a​import ( "fmt" "my-test/importcicle/b")​type A struct {}​func (a A) DoSomethingWithA() { fmt.Println(a)}​func CreateA() *A { a := &A{} return…

    Downvoting a post can decrease pending rewards and make it less visible. Common reasons:

    • Disagreement on rewards
    • Fraud or plagiarism
    • Hate speech or trolling
    • Miscategorized content or spam

    Submit
    $0.00
       1
    • ycuzjj (50)in rust • 4 years ago

      Rust中应该尝试使用的12个杀手级库

      Rust中应该尝试使用的12个杀手级库 1、clap clap在写一些CLI工具时非常有用,在 ripgrep 和Rust自己的 Cargo 都在使用,clap编译后非常小,而且加载启动非常快。clap会帮你处理命令行参数,可以自定义友好提示,支持函数式操作,非常方便 官网地址 use clap::App;

      Downvoting a post can decrease pending rewards and make it less visible. Common reasons:

      • Disagreement on rewards
      • Fraud or plagiarism
      • Hate speech or trolling
      • Miscategorized content or spam

      Submit
      $20.30
      • Past Payouts $20.30
      • - Author $10.15
      • - Curators $10.15
       0