GithubHelp home page GithubHelp logo

aproto's Introduction

Descryption

Golang module/tool for decoding proto buffer without message definition.

Try it online

http://pb-decode.online/

Screenshot

pb

Usage of library aproto

The library provides two Renderers: Console and Html, which are used for Console program and web site.

  • ConsoleRenderer
  out, e := aproto.TryDumpEx([]byte{...}, &aproto.ConsoleRenderer{})
  // or just:
  out, e := aproto.TryDump([]byte{...})
  fmt.Println(out)
  • HtmlRenderer
  out, e := aproto.TryDumpEx([]byte{...}, &aproto.HtmlRenderer{})
  // transfer the output to client browser, render it with
  $('#div').text(out)
  • Or create other custom Renders, just follow the Renderer interface

Use the prebuilt tool "proto_decoder"

supported: text/file with hex-string/binary/base64/zlib encoding

eg:

  • hex string: pro 120123
  • space/tab/newline will be trimmed:
pro "08 01 12 03   04 05
  06 07 08
  09 10 111213"
  • base64 + zlib string: pro -b64 EgEj
  • binary file: pro -bin -file a.bin
  • zlib+base64 file: pro -zlib -b64 -file a.bin
  • ...

Or build it yourself

  1. Install Golang
  2. clone this repo: git clone https://github.com/aj3423/aproto
  3. go to binary dir: cd aproto/proto_decoder
  4. go build .

aproto's People

Contributors

aj3423 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.