file2proto

command module
v0.0.0-...-f63e9cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

file2proto, a utility that can convert struct, mysql, json and http into proto

Install

go get -u github.com/2637309949/file2proto

Syntax

file2proto
  -i string
        Fully qualified uri path
  -o string
        Protobuf output file. (default "messages.proto")

Example

file2proto -i ./ -o messages.proto
2021/10/14 18:57:10 output file written to /helloworld-service/srv/types/messages.proto
file2proto -i "mysql://myppdb:myppdb@tcp(127.0.0.1:3306)/db_psycinves"
2021/10/14 18:57:10 output file written to /helloworld-service/srv/types/messages.proto
file2proto -i ./test.json
2021/10/15 23:21:05 output file written to messages.proto
file2proto -i "https://help.aliyun.com/api/v2/recommend/doc?idList=209974&limit=6&isMobile=false"
2021/10/15 23:16:32 output file written to messages.proto

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址