helpers

command module
v0.0.0-...-19cf36d Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 12 Imported by: 0

README

Helpers

Proto

In order to build the proto files in the proto folder, you can run the following command:

protoc --go_out=. --go_opt=paths=source_relative proto/*.proto

This should generate files and give you the following:

proto
├── split.pb.go
├── split.proto
├── tags.pb.go
├── tags.proto
├── todo.pb.go
└── todo.proto

Go

Before you read this section, make sure that you generated the go code from the proto files (see previous section).

There are multiple main functions in this folder so you cannot do a simple go run. You will have to specify the helper you want to run:

Integers
$ go run integers.go
in memory: 4
pb: 5
Tags
$ go run tags.go
0 - 0
1 - 1
16 - 3
2048 - 6
262144 - 10
33554432 - 15
536870911 - 20
Split
$ go run split.go
With Name: 7
With ComplexName: 9
Gzip
$ go run gzip.go
original: 191
compressed: 180

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