Showing 24 open source projects for "structs"

View related business solutions
  • Earn up to 16% annual interest with Nexo. Icon
    Earn up to 16% annual interest with Nexo.

    More flexibility. More control.

    Generate interest, access liquidity without selling, and execute trades seamlessly. All in one platform. Geographic restrictions, eligibility, and terms apply.
    Get started with Nexo.
  • Stop vibe-debugging. Icon
    Stop vibe-debugging.

    Plug Claude into your app's actual errors.

    AppSignal's MCP server hands Claude, Cursor, or Zed your real errors, traces, and the deploy that shipped them. AI writes the fix; you review the diff.
    Free 30 days.
  • 1
    gopsutil

    gopsutil

    psutil for golang

    gopsutil tag policy is almost same as Semantic Versioning but automatically increases like Ubuntu versioning. gopsutil aims to keep backward compatibility until a major version change. Tagged at the end of the month, but if there are only a few commits, it can be skipped. All works are implemented without cgo by porting C structs to golang structs.
    Downloads: 5 This Week
    Last Update:
    See Project
  • 2
    Mergo

    Mergo

    Mergo: merging Go structs and maps since 2013

    A helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements. Mergo merges same-type structs and maps by setting default values in zero-value fields. Mergo won't merge unexported (private) fields. It will do recursively any exported one. It also won't merge structs inside maps (because they are not addressable using Go reflection).
    Downloads: 1 This Week
    Last Update:
    See Project
  • 3
    moq

    moq

    Interface mocking tool for go generate

    Moq is a Go interface mocking tool designed to generate test-friendly mock structs from existing interfaces. It is commonly used with go generate so teams can keep mock implementations synchronized with their source interfaces. Instead of relying on a large mocking framework, Moq creates straightforward Go code that can be inspected, edited, and used directly in tests. The generated structs allow developers to define function behavior for each mocked method.
    Downloads: 13 This Week
    Last Update:
    See Project
  • 4
    Go QueryString

    Go QueryString

    go-querystring is Go library for encoding structs into URL query

    go-querystring is a lightweight Go library developed by Google for encoding Go structs into URL query strings. It simplifies the process of constructing URLs with typed parameters, offering a clean, type-safe approach to building query strings programmatically. The library’s query package exposes a single Values() function that converts struct fields (tagged with url tags) into properly encoded query parameters. It is particularly useful for APIs or HTTP clients that represent query parameters as structs—such as in the go-github client library. ...
    Downloads: 1 This Week
    Last Update:
    See Project
  • $300 Free Credits to Build on Google Cloud Icon
    $300 Free Credits to Build on Google Cloud

    New to Google Cloud? Get $300 in credits to explore Compute Engine, BigQuery, Cloud Run, Gemini Enterprise Agent Platform, and more.

    Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
    Claim $300 Free
  • 5
    q Go

    q Go

    Quick and dirty debugging output for tired Go programmers

    ...Type q.Q instead of fmt.Printf and your variables will be printed like the provided example. Faster to type, pretty-printed vars and expressions. Easier to see inside structs, doesn't go to noisy-ass stdout. It goes to $TMPDIR/q. q Go offers pretty colors!
    Downloads: 4 This Week
    Last Update:
    See Project
  • 6
    go-restful

    go-restful

    Package for building REST-style Web Services using Go

    ...Filters for intercepting the request-response flow on Service or Route level. Request-scoped variables using attributes. Route errors produce HTTP 404/405/406/415 errors, customizable using ServiceErrorHandler(...). Request API for reading structs from JSON/XML and accessing parameters (path, query, header). Customizable gzip/deflate readers and writers using CompressorProvider registration. There are several hooks to customize the behavior of the go-restful package.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 7
    GORM

    GORM

    The fantastic ORM library for Golang, aims to be developer friendly

    GORM is a powerful, developer-friendly ORM library for Go. It maps Go structs to DB tables, supports relationships, hooks, transactions, eager loading, raw SQL, migrations, and advanced querying with plugins.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 8
    env

    env

    A simple and zero-dependencies library to parse environment variables

    Parse environment variables to structs in Go. In Go, it’s dead simple to get the value from an environment variable. If you have a type that is not supported out of the box by the lib, you are able to use (or define) and pass custom parsers (and their associated reflect.Type) to the env.ParseWithFuncs() function. Env supports by default anything that implements the TextUnmarshaler interface.
    Downloads: 10 This Week
    Last Update:
    See Project
  • 9
    PostgreSQL client and ORM for Golang

    PostgreSQL client and ORM for Golang

    Golang ORM with focus on PostgreSQL features and performance

    ...All struct fields are nullable by default and zero values (empty string, 0, zero time, empty map or slice, nil ptr) are marshalled as SQL NULL. pg:",notnull" is used to add SQL NOT NULL constraint and pg:",use_zero" to allow Go zero values. sql.NullBool, sql.NullString, sql.NullInt64, sql.NullFloat64 and pg.NullTime. Structs, maps and arrays are marshalled as JSON by default. PostgreSQL multidimensional Arrays using array tag and Array wrapper. Hstore using hstore tag and Hstore wrapper. go-pg supports 2 last Go versions and requires support for Go modules. So make sure to initialize a Go module. ORM supports has one, belongs to, has many, and many to many with composite/multi-column primary keys. ...
    Downloads: 7 This Week
    Last Update:
    See Project
  • Build Agents and Models on One Platform Icon
    Build Agents and Models on One Platform

    Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

    Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
    Try It Free
  • 10
    goquery

    goquery

    A little like that j-thing, only in Go

    goquery brings a syntax and a set of features similar to jQuery to the Go language. It is based on Go's net/HTML package and the CSS Selector library Cascadia. Since the net/html parser returns nodes, and not a full-featured DOM tree, jQuery's stateful manipulation functions (like height(), css(), and detach()) have been left off. Also, because the net/HTML parser requires UTF-8 encoding, so does goquery: it is the caller's responsibility to ensure that the source document provides UTF-8...
    Downloads: 4 This Week
    Last Update:
    See Project
  • 11
    goldmark

    goldmark

    A markdown parser written in Go. Easy to extend, standard, compliant

    ...Easy to extend, standard(CommonMark) compliant, well structured.golang-commonmark may be a good choice, but it seems to be a copy of markdown-it. blackfriday.v2 is a fast and widely-used implementation, but is not CommonMark-compliant and cannot be extended from outside of the package, since its AST uses structs instead of interfaces. Furthermore, its behavior differs from other implementations in some cases, especially regarding lists: Deep nested lists don't output correctly #329, List block cannot have a second line #244, etc. This behavior sometimes causes problems. If you migrate your Markdown text from GitHub to blackfriday-based wikis, many lists will immediately be broken. ...
    Downloads: 3 This Week
    Last Update:
    See Project
  • 12
    gomodifytags

    gomodifytags

    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. It also allows you to add and remove tag options. It's intended to be used by an editor, but also has modes to run it from the terminal.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 13
    go-github

    go-github

    Go library for accessing the GitHub API

    go-github is a Go client library for accessing the GitHub API v3. Currently, go-github requires Go version 1.13 or greater. go-github tracks Go's version support policy. We do our best not to break older versions of Go if we don't have to, but due to tooling constraints, we don't always test older versions. If you're interested in using the GraphQL API v4, the recommended library is shurcooL/githubv4. go-github is compatible with modern Go releases in module mode. Resolve and add the package...
    Downloads: 3 This Week
    Last Update:
    See Project
  • 14
    Alternative JSON parser for Go

    Alternative JSON parser for Go

    One of the fastest alternative JSON parser for Go

    It does not require you to know the structure of the payload (eg. create structs), and allows accessing fields by providing the path to them. It is up to 10 times faster than standard encoding/json package (depending on payload size and usage), allocates no memory. Originally made for a project that relies on a lot of 3rd party APIs that can be unpredictable and complex. Encoding/json requires you to know exactly your data structures, or if you prefer to use map[string]interface{} instead, it will be very slow and hard to manage. ...
    Downloads: 1 This Week
    Last Update:
    See Project
  • 15
    SQLBoiler

    SQLBoiler

    Generate a Go ORM tailored to your database schema

    SQLBoiler is a tool to generate a Go ORM tailored to your database schema. It is a "database-first" ORM as opposed to "code-first" (like gorm/gorp). That means you must first create your database schema. Please use something like sql-migrate or some other migration tool to manage this part of the database's life-cycle. While attempting to migrate a legacy Rails database, we realized how much ActiveRecord benefited us in terms of development velocity. Coming over to the Go database/sql...
    Downloads: 3 This Week
    Last Update:
    See Project
  • 16
    goqu

    goqu

    SQL builder and query library for golang

    ...Built from the ground up with multiple dialects in mind. Insert, multi insert, update, and delete support. Scanning of rows to struct[s] or primitive value[s]. While goqu may support the scanning of rows into structs it is not intended to be used as an ORM if you are looking for common ORM features like associations, or hooks I would recommend looking at some of the great ORM libraries. The test suite requires a postgres, mysql and sqlserver databases.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 17
    go-fundamental-programming

    go-fundamental-programming

    Set of video and voice tutorials for the Go language

    ...This structure allows students to quickly jump to specific topics in the video without scrubbing blindly through the timeline. The syllabus goes from environment setup and basic syntax to types and variables, constants and operators, control statements, arrays, slices, maps, functions, structs, methods, interfaces, reflection, and concurrency, before finishing with a “projects and pitfalls” session.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 18
    govalidator

    govalidator

    Package of validators and sanitizers for strings, numerics, etc.

    ...This is disabled by default for consistency, but some packages that need to be able to determine between nil and zero value state can use this. If disabled, both nil and zero values cause validation errors. If you want to validate structs, you can use tag valid for any field in your structure. All validators used with this field in one tag are separated by comma.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 19
    ozzo-validation

    ozzo-validation

    An idiomatic Go (golang) validation package

    ...It has the following features. Use normal programming constructs rather than error-prone struct tags to specify how data should be validated. Can validate data of different types, e.g., structs, strings, byte slices, slices, maps, and arrays. Can validate custom data types as long as they implement the Validatable interface. Can validate data types that implement the sql.Valuer interface (e.g. sql.NullString). Customizable and well-formatted validation errors. Error code and message translation support. Provide a rich set of validation rules right out of the box. ...
    Downloads: 6 This Week
    Last Update:
    See Project
  • 20
    Gizmo Microservice Toolkit

    Gizmo Microservice Toolkit

    A Microservice Toolkit from The New York Times

    ...This meant that they varied from team to team and project to project with regard to structure, naming conventions and third-party tools. As we started building more and more APIs, the pains of microservices started to become apparent. The config package provides a set of common, composable structs for working with tools common to the technology currently at The New York Times.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 21
    gofuzz

    gofuzz

    Fuzz testing for go

    gofuzz is a lightweight fuzzing utility for Go that rapidly generates randomized, edge-case-heavy inputs to populate structs, maps, slices, and scalar fields. It’s engineered to make property tests productive by automatically traversing nested types and supplying varied values, including zero values, extremes, and random strings or byte sequences. Because it respects Go’s type system, it can generate valid shapes for complex generic or composite types with very little setup.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 22
    Structs

    Structs

    Utilities for Go structs

    ...Just like the standard lib strings, bytes and co packages, structs has many global functions to manipulate or organize your struct data. Lets define and declare a struct. The structs functions can be also used as independent methods by creating a new *structs.Struct. This is handy if you want to have more control over the structs (such as retrieving a single Field). Structs containPackage structs contains various utilities functions to work with structs various utilities to work with Go (Golang) structs.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 23
    go-kallax

    go-kallax

    Kallax is a PostgreSQL typesafe ORM for the Go language

    go-kallax is a type-safe ORM for Go, designed to work seamlessly with PostgreSQL. It generates Go code from your database schema using model definitions, allowing for clean and performant data access without raw SQL. The library is built with Go idioms in mind and focuses on compile-time safety and ease of use.
    Downloads: 4 This Week
    Last Update:
    See Project
  • 24
    Go XORM

    Go XORM

    Simple and Powerful ORM for Go

    ...It provides a clean API for interacting with databases, supporting multiple database systems. XORM simplifies database operations by allowing developers to work with Go structs instead of writing raw SQL queries.
    Downloads: 3 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • Next