Giter Club home page Giter Club logo

go-iproto's Introduction

Go Reference Actions Status Telegram Telegram Russian

iproto

Import

import "github.com/tarantool/go-iproto"

Overview

Package iproto contains IPROTO constants.

The code generated from Tarantool code. Code generation is only supported for an actual commit/release. We do not have a goal to support all versions of Tarantool with a code generator.

Example

package main

import (
	"fmt"

	"github.com/tarantool/go-iproto"
)

func main() {
	fmt.Printf("%s=%d\n", iproto.ER_READONLY, iproto.ER_READONLY)
	fmt.Printf("%s=%d\n", iproto.IPROTO_FEATURE_WATCHERS, iproto.IPROTO_FEATURE_WATCHERS)
	fmt.Printf("%s=%d\n", iproto.IPROTO_FLAG_COMMIT, iproto.IPROTO_FLAG_COMMIT)
	fmt.Printf("%s=%d\n", iproto.IPROTO_SYNC, iproto.IPROTO_SYNC)
	fmt.Printf("%s=%d\n", iproto.IPROTO_SELECT, iproto.IPROTO_SELECT)
}

Development

You need to install git and go1.13+ first. After that, you need to install additional dependencies into $GOBIN:

make deps

You can generate the code with commands:

TT_TAG=master make
TT_TAG=3.0.0 make
TT_TAG=master TT_REPO=https://github.com/my/tarantool.git make

You need to specify a target branch/tag with the environment variable TT_TAG and you could to specify a repository with the TT_REPO.

Makefile has additional targets that can be useful:

make format
TT_TAG=master make generate
make test

A good starting point is generate.go.

go-iproto's People

Contributors

oleg-jukovec avatar derekbum avatar

Watchers

Alexander Turenko avatar Borislav Demidov avatar Yaroslav Lobankov avatar  avatar  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.