151 Resources
Golang struct-print Libraries
Marshmallow provides a flexible and performant JSON unmarshalling in Go. It specializes in dealing with unstructured struct - when some fields are known and some aren't, with zero performance overhead nor extra coding needed.
Marshmallow Marshmallow package provides a simple API to perform flexible and performant JSON unmarshalling in Go. Marshmallow specializes in dealing
Excel binding to struct written in Go.(Only supports Go1.18+)
exl Excel binding to struct written in Go.(Only supports Go1.18+) usage Read Excel package main import ( "fmt" "github.com/go-the-way/exl" ) type
ddl-maker generate ddl (SQL file) from Go struct.
[日本語] What is ddl-maker ddl-maker generate ddl (SQL file) from golang struct. It's only supported MySQL only now. The original code is kayac/ddl-maker
Highly configurable struct to map converter.
Mapify Highly configurable struct to map converter. Will convert maps into other maps as well (work in progress). Features configuration outside the s
Optinator - Idiomatic way to fill structs with options logic
optinator Go packages are generally start with a main struct and the package ini
Goal is to generate logger and tracer wraps around a certain struct
Goal is to generate logger and tracer wraps around a certain struct
Structscanner is a simple library to make going from database queries to structs easier
structscanner is a simple library to make going from database queries to structs easier, while retaining the flexibility of joins and mapping using struct tags.
Print random bytes from a secure source to stdout.
Print random bytes from a secure source to stdout.
This CLI tool sends HTTP GET requests and print MD5 hash values of the response's body
HTTP Body Hash Generator This CLI (Command Line Interface) tool sends HTTP GET requests and print MD5 hash values of the response's body. Usage You ne
A simple golang api generator that stores struct fields in key/value based databases
Backgen A simple golang API generator that uses key/value based databases. It does not provide the database itself, only uses a interface to access se
Compute and print message digest hash values from stdin.
Compute and print message digest hash values from stdin.
Tutorial code for my video Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang
Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang Read text from a file and split into words. Introduction to slices / lists. Co
A simple golang marshaller from commandline to a struct
flagmarshal SYNOPSIS A simple golang marshaller from commandline to a struct ParseFlags(structptr interface{}) error DESCRIPTION Very simple implement
Tag based configuration loader from different providers
Gonfig Tag-based configuration parser which loads values from different providers into typesafe struct. Installation This package needs go version 1.1
Go-banner-printer - This library is to simply print a ASCII banner when you start the application
This library is to simply print a ASCII banner when you start the application.
go library for complex struct mapping
Dto mapper dto-mapper is an easy-to-use library for complex struct mapping. It's intended for the creation of data transfer objects, hence the name. W
This script search print debug from PHP code.
go-php-print-debug This script search print debug from PHP code. Checking "print", "print_r", "var_dump", "var_export", "echo" as print debug. Exclude
dateparse time by struct tag
dateparse_tag dateparse time by struct tag intro&简介 WithTagName() // 自定义你想要使用的tag名称,默认为dateFormat WithDefaultTagValue() // 定义这个tag的默认值,默认为 default Wit
Go package to easily convert a URL's query parameters/values into usable struct values of the correct types.
Query Param Stop accessing query strings and repeatedly parsing them into your preferred values - queryparam can do that for you! Installation go get
simple web app that print its environment variable, useful for testing on k8s
Index Sample web app that pints environment variables. Start it: docker-compose up Use it: curl localhost:8080 PATH=/usr/local/sbin:/usr/local/bin:/
Tugas Alta Immersive Backend Golang Fundamental Programming (Pointer, Struct, Method, Interface)
Tatacara Melakukan Setup Tugas clone project ini dengan cara git clone https://github.com/Immersive-Backend-Resource/Pointer-Struct-Method-Interface.g
Package goshark use tshark to decode IP packet and create data struct to analyse packet.
goshark Package goshark use tshark to decode IP packet and create data struct to analyse
Light Object-Relational Environment (LORE) provides a simple and lightweight pseudo-ORM/pseudo-struct-mapping environment for Go
LORE Light Object-Relational Environment (LORE) provides a simple and lightweight pseudo-ORM/pseudo-struct-mapping environment for Go. Motivation With
Verify and print TPM2.0 Quotes
Verify and print TPM2.0 Quotes Signature verified Firmware Version: XXXXXXXXXXXXXX Clock: XXXXXXXXX Resetcount: 9 Restartcount: 0 Safe: 01 Nonce Incl
Console - Commands are defined in struct extending pkg/command/create user.go
Console Creating a Command Commands are defined in struct extending pkg/command/
Transmo - Transform Model into another model based on struct for Go (Golang).
Transmo Transmo is a Go library for transform model into another model base on struct. This library detect your field name to copy that into another m
Schemable - Schemable provides basic struct mapping against a database, using the squirrel package
Schemable Schemable provides basic struct mapping against a database, using the
Time struct in Go that uses 4 bytes of memory vs the 24 bytes of time.Time
go-tinytime A tiny time object in Go. Tinytime uses 4 bytes of memory vs the 24 bytes of a standard time.Time{} A tinytime only supports dates from 19
Automatically generate tags for golang struct.
gotag is a command tool that can automatically generate tags for golang struct. Quick start Install gotag go install github.com/sycki/gotag@latest Pr
Automatically generate tags for golang struct.
gtag is a command tool that can automatically generate tags for golang struct. Quick start Install gtag into your GOPATH go install github.com/sycki/g
Structproto - Struct Prototype for golang
structproto - StructPrototype Synopsis import ( "github.com/structproto" "github.com/structproto/valuebinder" ) type mockCharacter struct { Na
An Example to print string for times, init.go & config.go are needed!
tao-hello _ _ U _____ u _ _ U ___ u _____ _ U ___ u |'| |'| \| ___"|/ |"| |"| \/"_ \/ |_ " _| U /"
GoStruct2Table - format your struct like a table.
GoStruct2Table format your struct like a table. Installing $ go get -u -v github.com/runningzyp/GoStruct2Table Simple Example import parser "github.c
Golang struct to postgres table shifter.
pg-shifter Golang struct to postgres table shifter. go1.9+ required. The main objective is to keep the table's complete schema details in golang table
Golang code generator for creating struct from json.
jsonToStruct Golang code generator for creating struct from json. INSTALLATION go get github.com/mayur-tolexo/j2s Tags: -ip=input.json [Input File (de
Print mail to stdout
mat A little mail tester daemon written in Go. Ported from mt. Description mat fakes a SMTP server and prints incoming emails to stdout. Installation
Print specified values from desktop files to stdout.
dprint Print specified values from desktop files to stdout. Look, it’s hard to describe okay? Here’s a picture of me using it with dmenu. My launcher
Package gorilla/schema fills a struct with form values.
schema Package gorilla/schema converts structs to and from form values. Example Here's a quick example: we parse POST form values and then decode them
Print build info from binary, using buildinfo package.
Go Build Info Print build info from binary, using buildinfo package. https://pkg.go.dev/debug/[email protected] Note: This was created to help me
goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
goconfig goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configur
Tag based configuration loader from different providers
Gonfig Tag-based configuration parser which loads values from different providers into typesafe struct. Installation This package needs go version 1.1
An ease to use finit state machine golang implementation.Turn any struct to a fsm with graphviz visualization supported.
go-fsm An ease to use finit state machine golang implementation.Turn any struct to a fsm with graphviz visualization supported. usage import github.co
Convert xml and json to go struct
xj2go The goal is to convert xml or json file to go struct file. Usage Download and install it: $ go get -u -v github.com/wk30/xj2go/cmd/... $ xj [-t
Translates TOML into a Go type in your browser instantly
TOML-to-Go Translates TOML into a Go type definition. Check it out! Contributions are welcome! Open a pull request to fix a bug, or open an issue to d
Marshal data into commands struct!
Commandarrgh in a nuthsell Commandarrgh is an interface that helps you marshaling data into a command arguments structure. Maybe you have been trying
Simple struct copying for golang
Deepcopier This package is meant to make copying of structs to/from others structs a bit easier. Installation go get -u github.com/ulule/deepcopier Us
Fill struct data easily with fill tags
filler small util to fill gaps in your structs Installation $ go get github.com/yaronsumel/filler Usage package main import ( "fmt" "github.com/yar
A Go library for encoding structs into Header fields.
go-httpheader go-httpheader is a Go library for encoding structs into Header fields. install go get -u github.com/mozillazg/go-httpheader usage packag
Print Go values as Go source.
printsrc: Printing Go Values as Source There are many packages that print Go values so people can read them. This package prints Go values so the Go c
Use go to count file's lines and print them.
用法 go run staticCodeLine.go -p [root path] -s [suffix name] -e [exclude dirs] 如果 -e 有多个参数,多次输入 -e [suffix name]。 ╰─± go run statisticCodeLine.go -p /U
Golang struct operations.
Golang structs Package structs implements simple functions to manipulate structs in Golang. Get it go get github.com/PumpkinSeed/structs Contains Con
Memory-Alignment: a tool to help analyze layout of fields in struct in memory
Memory Alignment Memory-Alignment is a tool to help analyze layout of fields in struct in memory. Usage go get github.com/vearne/mem-aligin Example p
Get the value in JSON by path, no need for struct
Get the value in JSON by path, no need for struct
A command-line tool to pretty print your system's PATH environment variable.
Description A command-line tool to pretty print your system's PATH environment variable. The output paths are colorized if they have special associati
🛠 A test fixtures replacement for Go, support struct and ent, inspired by factory_bot/factory_boy
carrier - A Test Fixtures Replacement for Go Statically Typed - 100% statically typed using code generation Developer Friendly API - explicit API with
containedctx detects is a linter that detects struct contained context.Context field
containedctx containedctx detects is a linter that detects struct contained context.Context field Instruction go install github.com/sivchari/contained
Print day progress in your terminal
Day progress Print day progress in your terminal Install go install github.com/tsivinsky/day-progress@latest Usage day-progress By default, day-progre
Use the command to convert arbitrary formats to Go Struct (including json, toml, yaml, etc.)
go2struct-tool Use the command to convert arbitrary formats to Go Struct (including json, toml, yaml, etc.) Installation Run the following command und
Encode and decode binary message and file formats in Go
Encode and Decode Binary Formats in Go This module wraps the package encoding/binary of the Go standard library and provides the missing Marshal() and
A go Library for scan database/sql rows to struct、slice、other types. And it support multiple databases connection management
ploto A go Library for scan database/sql rows to struct、slice、other types. And it support multiple databases connection management It's not an ORM. wo
Easy to use library and CLI utility to generate Go struct from CSV files.
csv2struct Easy to use library and CLI utility to generate Go struct from CSV files. As a benefit, it's fully compatible with csvutil. So, structs gen
Watch and print changes in k8s
Watch kubernetes resources and print the delta in changes.
A program to create assembly 8086 strings to print without using any printing/strings related function but only mov-xchg-int and loops
Assembly String builder tool A program to create assembly 8086 strings to print without using any printing/strings related function but only mov-xchg-
Tool to visualize the graph of embedded structs in Go projects
Visualize a hierarchy of embedded Go structs This tool scans a directory of Go source code files to create a visualization of struct embedding in the
Print lines matching a pattern in repositories using GitHub API
gh-grep Print lines matching a pattern in repositories using GitHub API Usage $ gh grep func.*schema.Schema --include=**/*.go --owner k1LoW --repo tbl
Cache list, count with filter param golang, using struct, hashkey
Dumbcache Cache list, count with filter param golang, using struct, hashkey Structure we hash your request object to md5 hashing and add a prefix coun
The kprobe package allows construction of dynamic struct based on kprobe event format descriptions.
The kprobe package allows construction of dynamic struct based on kprobe event format descriptions.
thermal print server for esc pos printers
thprint thprint is an extremely simple printing server for thermal printers connected to raspberry pis. This printing server exposes a print endpoint
dshield-intelfeel-ips - print all IPs from the DShield API's Intelfeed to STDOUT
dshield-intelfeel-ips dshield-intelfeel-ips - print all IPs from the DShield API's Intelfeed to STDOUT Project Description Usage Description Installat
mmdb-dump-networks - print every network in an MMDB to STDOUT
mmdb-dump-networks mmdb-dump-networks - print every network in an MMDB to STDOUT Project Description Usage Description Installation Reporting Bugs and
Convert json string to Golang struct
json-to-go-cli Convert json string to Golang struct How to install git clone https://github.com/tiancheng92/json-to-go-cli.git cd json-to-go-cli go bu
An interesting go struct tag expression syntax for field validation, etc.
An interesting go struct tag expression syntax for field validation, etc.
Go generator to copy values from type to type and fields from struct to struct. Copier without reflection.
Copygen is a command-line code generator that generates type-to-type and field-to-field struct code without adding any reflection or dependenc
Print all source code for a given go package or module.
gosrcs gosrcs is a tool to print all the source code a given go package depends on. The original motivation of this tool is to integrate go builds int
Convert arbitrary formats to Go Struct (including json, toml, yaml, etc.)
go2struct Convert arbitrary formats to Go Struct (including json, toml, yaml, etc.) Installation Run the following command under your project: go get
timea.go (did you see what I did there?) is a simple library to print given times in
timea.go timea.go (did you see what I did there?) is a simple library to print given times in "time ago" manner. Usage Get it: go get github.com/caarl
💯 Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
Package validator implements value validations for structs and individual fields based on tags.
golang struct 或其他对象向 []byte 的序列化或反序列化
bytecodec 字节流编解码 这个库实现 struct 或其他对象向 []byte 的序列化或反序列化 可以帮助你在编写 tcp 服务,或者需要操作字节流时,简化数据的组包、解包 这个库的组织逻辑 copy 借鉴了标准库 encoding/json 🙏 安装 使用 go get 安装最新版本
Go linter to check the struct literal to use field name
Structfield Find struct literals using non-labeled fields. The structfield analysis reports the usage of struct literal using non-labeled fields more
An opinionated package that helps you print user-friendly output messages from your Go command line applications.
github.com/eth-p/clout (Command Line Output) clout is a package that helps you print user-friendly output messages from your Go command line applicati
Print debugging, but a little bit nicer
testlog Print debugging, but a little bit nicer. The use case this is primarily designed for is effectively debugging problematic, flaky tests.
structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.
structslop Package structslop defines an Analyzer that checks struct can be re-arranged fields to get optimal struct size.
Align Golang struct tags
Formattag The tool is used to align golang struct's tags. eg.: Before // TestStruct this is a test struct type TestStruct struct { ID stri
A linter that handles struct tags.
Tagliatelle A linter that handles struct tags. Supported string casing: camel pascal kebab snake goCamel Respects Go's common initialisms (e.g. HttpRe
goql is a GraphQL client package written in Go. with built-in two-way marshaling support via struct tags.
goql is a GraphQL client package written in Go. with built-in two-way marshaling support via struct tags.
Paramex is a library that binds http request parameters to a Go struct annotated with `param`.
paramex Paramex is a library that binds http request parameters to a Go struct annotated with param. Description To extract http parameters (headers,
peanut is a Go package to write tagged data structs to disk in a variety of formats.
peanut peanut is a Go package to write tagged data structs to disk in a variety of formats. Its primary purpose is to provide a single consistent inte
A cross-platform tool to convert images into ascii art and print them on the console
A cross-platform tool to convert images into ascii art and print them on the console
Golang Skeleton With Fully Managed Versions For Kick Start GoLang Project Development
Golang Skeleton With Fully Managed Versions For Kick Start GoLang Project Development There is no doubt that Golang’s good documentation and intellige
Initialize structs with default values
defaults Initialize structs with default values Supports almost all kind of types Scalar types int/8/16/32/64, uint/8/16/32/64, float32/64 uintptr, bo
🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows.
🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于 Print/Sprintf,兼容并支持 Windows 环境的色彩渲染
Time struct in Go that uses 4 bytes of memory vs the 24 bytes of time.Time
A tiny time object in Go. Tinytime uses 4 bytes of memory vs the 24 bytes of a standard time.Time{}
☄ The golang convenient converter supports Database to Struct, SQL to Struct, and JSON to Struct.
Gormat - Cross platform gopher tool The golang convenient converter supports Database to Struct, SQL to Struct, and JSON to Struct. 中文说明 Features Data
database to golang struct
中文文档 mysql database to golang struct conversion tools base on gorm(v1/v2),You can automatically generate golang sturct from mysql database. big Camel-
Go tool to modify struct field tags
Go tool to modify/update field tags in structs. gomodifytags makes it easy to update, add or delete the tags in a struct field. You can easily add new tags, update existing tags (such as appending a new key, i.e: db, xml, etc..) or remove existing tags
Robust & Easy to use struct mapper and utility methods for Go
go-model Robust & Easy to use model mapper and utility methods for Go struct. Typical methods increase productivity and make Go development more fun ?
Copier for golang, copy value from struct to struct and more
Copier I am a copier, I copy everything from one to another Features Copy from field to field with same name Copy from method to field with same name
Slice graph uses graphviz in order to pretty print slices for you.
slicegraph Slice graph uses graphviz in order to make you understand what happens underneath your slices.
Encode and decode Go (golang) struct types via protocol buffers.
protostructure protostructure is a Go library for encoding and decoding a struct type over the wire. This library is useful when you want to send arbi