並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 3 件 / 3件

新着順 人気順

"Pretty Print"の検索結果1 - 3 件 / 3件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

"Pretty Print"に関するエントリは3件あります。 golanggo などが関連タグです。 人気エントリには 『Go のデバッグやコード生成に便利な pretty print できるライブラリ「dd」を作った』などがあります。
  • Go のデバッグやコード生成に便利な pretty print できるライブラリ「dd」を作った

    github.com/Code-Hex/dd という Go の構文として有効なフォーマットで pretty print を行えるライブラリを作成しました。(Star をくれると大喜びします) 色付き pretty print をするとこんな感じになります。 作った背景 pretty print 可能なライブラリは既にいくつか存在します。有名どころだと github.com/davecgh/go-spew/spew や github.com/k0kubun/pp/v3 があります。私はこれらのライブラリがとても好きで良く利用しています。パッケージ名は k0kubun/pp を真似しています。こちらは data dumper の略で dd です。 しかし、JSON や YAML などのデータを Go の構造体へマッピングし、その結果をテストデータとして比較したい時に、上記で紹介したライブラリの

      Go のデバッグやコード生成に便利な pretty print できるライブラリ「dd」を作った
    • GitHub - zhiburt/tabled: An easy to use library for pretty print tables of Rust structs and enums.

      To print a list of structs or enums as a table, there is 2 ways. Using a builder method, to build table step by step Implement a Tabled trait for your type (or anotate your type with a derive macro) and use a iterator of this type. A builder method gets handy, when a data schema is unknown, while a typped struct in cases where we know the data structure beforehand. Notice that there are a lot of m

        GitHub - zhiburt/tabled: An easy to use library for pretty print tables of Rust structs and enums.
      • pretty-print-json

        <link rel=stylesheet href=https://cdn.jsdelivr.net/npm/pretty-print-json@3.0/dist/css/pretty-print-json.css> ... <script src=https://cdn.jsdelivr.net/npm/pretty-print-json@3.0/dist/pretty-print-json.min.js></script> The minified JS file is 2 KB. For dark mode, replace pretty-print-json.css with pretty-print-json.dark-mode.css in the <link> tag. Or to automatically sense dark mode based on the pref

          pretty-print-json
        1

        新着記事