Byte Ebi's Logo

Byte Ebi 🍀

A Bit everyday A Byte every week

Different between pointer and value for struct type in golang

The different between pointer and value for struct type in golang with examples

Ray

I always had a question “Should I use value for type in struct? Or using pointer?”
After reading many different projects on the web, it seems that they all have different practices.
Until I recently encountered a problem that gave me some ideas.

Interacting with smart contracts using Golang

Generating a Go package with abigen tool to interact with smart contracts and perform contract operations

Ray

Previously, I was calling Smart Contracts through PHP, which raised two issues.
One was the slowness, and the other was the lack of maintenance of the package.
Fortunately, Golang provides an official package that is both fast and solves these two problems.
This article explains how to convert existing Smart Contract ABIs into a Go package for interacting with contracts.

Recent Posts

Categories

Tags