awesome-repositories.com
المدونة
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
Masterminds avatar

Masterminds/sprig

0
View on GitHub↗
4,692 نجوم·473 تفرعات·Go·mit·4 مشاهداتmasterminds.github.io/sprig↗

Sprig

Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates.

The project offers specialized capabilities for cryptography, including the generation of private keys, X.509 certificates, and secure password hashes. It also includes advanced logic extensions for semantic versioning comparison, ternary evaluations, and the resolution of environment variables from the host operating system.

The library covers a broad surface of general-purpose utilities, including extensive string processing for case conversion and regular expressions, mathematical operations for floating-point and integer arithmetic, and temporal tools for date and time formatting. It further provides data structure management for deeply merging dictionaries, filtering lists, and encoding or decoding JSON.

The project is implemented as a function map that integrates with the standard Go template system.

Features

  • Template Extensions - Extends the Go template engine with a comprehensive library of helper functions for data manipulation.
  • Custom Function Maps - Injects a custom map of Go functions into the template engine to provide helper capabilities.
  • Template Functions - Provides a comprehensive set of reusable helper functions to extend logic and data manipulation within Go templates.
  • Structured Data Format Converters - Converts dictionaries and lists into formatted JSON and other structured outputs within the template pipeline.
  • Math Utilities - Implements basic mathematical operations including sums, products, and maximums.
  • Regex Pattern Matching - Performs pattern matching, replacements, and string splitting using regular expressions.
  • Collection Manipulation Utilities - Provides a comprehensive toolkit for creating, sorting, filtering, and extracting values from lists and dictionaries.
  • Dictionary Copying - Creates independent deep copies of dictionaries to prevent unintended mutations.
  • Data Manipulation Libraries - Provides a toolkit for transforming structured data, including merging dictionaries and filtering lists, during template execution.
  • Numeric Extremum Identification - Identifies the largest or smallest integer from a given set of values.
  • Language Runtime Type Inspection - Provides reflection-based type inspection to retrieve or compare the underlying type of a value.
  • Configuration File Generators - Generates configuration files by combining environment variables and conditional logic.
  • Date and Time Utilities - Provides comprehensive functions for transforming timestamps and date strings into specific layouts.
  • Duration Calculations - Computes elapsed time since a specific date and rounds durations for human-readable display.
  • Date String Parsers - Includes tools for parsing date strings using specific layouts to create date objects.
  • Temporal Arithmetic - Allows adjusting timestamps by adding or subtracting time increments via modification strings.
  • Date Formatting Utilities - Offers utilities to retrieve the current time and format timestamps into human-readable strings.
  • String Case Transformers - Converts strings between various naming conventions including camelCase, snake_case, and kebab-case.
  • Text Case Transformers - Transforms raw data into formatted text using casing, pluralization, and regular expression tools.
  • Cryptographic Helpers - Ships specialized template functions for generating security credentials, hashes, and X.509 certificates.
  • Template Logic Controllers - Implements conditional branching and logic helpers, such as ternary evaluations and semantic versioning checks, for templates.
  • Random Value Generators - Produces a random integer within a specified inclusive-minimum and exclusive-maximum range.
  • Whitespace Removers - Implements functions to remove leading and trailing whitespace or specific characters from strings.
  • Merging Utilities - Implements logic for recursively combining nested maps with configurable precedence rules.
  • Extremum Finding - Identifies the largest or smallest number from a series of floating-point values.
  • String Manipulators - Provides utilities for splitting strings into lists or maps based on specific delimiters.
  • Runtime Type Introspection - Returns the kind of an object to enable conditional logic within templates.
  • Text Processing Utilities - Offers extensive text processing utilities for case conversion, regex operations, and date formatting within templates.
  • Rounding Utilities - Adjusts floating-point values using rounding, flooring, and ceiling operations to a specific precision.
  • Floating Point Arithmetic - Executes fundamental arithmetic operations including addition and division on floating-point numbers.
  • Cryptography Libraries - Wraps Go's standard cryptography and encoding packages to provide high-level hashing and encryption functions.
  • Deep Equality Comparison - Determines if two non-primitive data structures are deeply equal by value.
  • Integer Arithmetic - Calculates sums and products using a series of integer inputs.
  • Text Block Formatting - Formats text blocks by wrapping content at specific widths or adding indentation.
  • String Manipulators - Concatenates multiple strings, replaces characters, and wraps text in quotes.
  • URL Construction - Assembles structured URL strings from a map of components.
  • URL Data Parsing - Deconstructs raw URL strings into structured dictionaries of their constituent parts.
  • JSON Parsing - Decodes JSON documents into usable data structures within templates.
  • Unique Identifier Generators - Generates randomly produced version 4 universally unique identifiers.
  • Dictionary Manipulation Utilities - Enables retrieval of specific values from dictionaries using keys and deep traversal.
  • Null Value Handling - Provides fallback values for empty variables and handles null values within template logic.
  • Version Constraints - Implements logic to verify if a version string satisfies specific constraints or ranges.
  • Semantic Versioning Systems - Parses version strings to determine relative order according to semantic versioning specifications.
  • Dictionary Management Utilities - Implements core dictionary operations including key creation, updates, deletion, and existence checks.
  • Environment Variable Resolution - Interfaces with the host operating system to retrieve and expand environment variables within templates.
  • List Filtering Utilities - Includes capabilities to remove duplicates and strip empty entries from lists.
  • List Manipulation Utilities - Ships functions to append, prepend, concatenate, and slice immutable sequential lists.
  • List Query Utilities - Provides utilities to retrieve the first, last, or remaining elements of a list.
  • List Transformation Utilities - Provides functions to reverse the sequence of elements or split lists into smaller chunks.
  • Key Filtering - Provides logic for extracting a new dictionary containing only a specified subset of keys.
  • Runtime Type Inspection - Includes functions to identify the underlying type or kind of a variable at runtime.
  • Binary-to-Text Encodings - Converts text into Base64 or Base32 formats and back again.
  • Certificate Management - Provides capabilities for generating self-signed and CA-signed X.509 certificates.
  • Cryptographic Operations - Implements cryptographic primitives for generating private keys, hashing data, and deriving secure passwords.
  • Cryptographic Random Number Generators - Creates cryptographically secure random strings using alphanumeric or ASCII character sets.
  • Encryption - Implements AES-256 CBC encryption to transform plain text into base64 encoded strings.
  • Algorithm-Driven Key Generation - Produces new private keys encoded in PEM blocks using various cryptographic algorithms.
  • Credential Generation - Produces random UUIDs, private keys, and password hashes for secure system initialization.
  • Cryptographic Hash Computations - Calculates message digests and checksums using standard algorithms like SHA256 and bcrypt.
  • Password Hash Generators - Generates secure password hashes for authentication using bcrypt and SHA algorithms.
  • Environment Variable Injection - Injects operating system environment variables into strings using template syntax.
  • First Non-Empty Selection - Scans a list of provided values and returns the first one that is not empty.
  • Fallback Value Logic - Returns a fallback value if the provided input is empty, null, or zero.
  • Pluralization Rules - Provides logic to select different string representations based on integer counts for singular and plural forms.
  • Empty Value Validations - Evaluates whether various data types are empty or non-empty based on their zero-value state.
  • Multi-Value Emptiness Checks - Checks a list of values to determine if all or any are non-empty.
  • Lexicographical Sorting - Arranges lists of strings into lexicographical order.
  • String Joining - Combines multiple string elements into a single string using a specified separator.
  • Content Analysis - Checks if strings contain specific substrings or start and end with certain characters.
  • Environment Variable Access - Reads and expands environment variables from the host operating system for use in templates.
  • Ternary Expression Evaluators - Implements ternary logic to return one of two values based on a boolean test.
  • JSON Encoding - Encodes data structures into JSON strings with support for pretty-printing and HTML escaping.
  • Template Engines - Collection of useful template functions.

سجل النجوم

مخطط تاريخ النجوم لـ masterminds/sprigمخطط تاريخ النجوم لـ masterminds/sprig

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

الأسئلة الشائعة

ما هي وظيفة masterminds/sprig؟

Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates.

ما هي الميزات الرئيسية لـ masterminds/sprig؟

الميزات الرئيسية لـ masterminds/sprig هي: Template Extensions, Custom Function Maps, Template Functions, Structured Data Format Converters, Math Utilities, Regex Pattern Matching, Collection Manipulation Utilities, Dictionary Copying.

ما هي البدائل مفتوحة المصدر لـ masterminds/sprig؟

تشمل البدائل مفتوحة المصدر لـ masterminds/sprig: carp-lang/carp — Carp is a statically typed Lisp compiler that compiles Lisp-like syntax directly to C source code, enabling seamless… chalarangelo/30-seconds-of-python — 30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and… jerry-git/learn-python3 — This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured… lunet-io/scriban — Scriban is a .NET text templating engine and embedded scripting language used for dynamic text generation. It… jackzhenguo/python-small-examples — This project is a comprehensive library of practical Python code examples and patterns. It provides a collection of… amber-lang/amber — Amber is a transpiler that translates high-level source code into executable shell scripts for Bash, Zsh, and Ksh. It…

بدائل مفتوحة المصدر لـ Sprig

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Sprig.
  • carp-lang/carpالصورة الرمزية لـ carp-lang

    carp-lang/Carp

    5,815عرض على GitHub↗

    Carp is a statically typed Lisp compiler that compiles Lisp-like syntax directly to C source code, enabling seamless integration with existing C libraries and low-level system programming. It manages memory deterministically at compile time using ownership tracking and linear types, eliminating garbage collection pauses and runtime overhead while ensuring type safety through an inferred static type system. The language distinguishes itself through compile-time macro expansion and metaprogramming capabilities, allowing code generation and transformation before final binary output. It enforces

    Haskellfunctionalfunctional-programminggame-development
    عرض على GitHub↗5,815
  • chalarangelo/30-seconds-of-pythonالصورة الرمزية لـ Chalarangelo

    Chalarangelo/30-seconds-of-python

    8,826عرض على GitHub↗

    30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and immediate reuse. It provides an interactive browser that lets you explore snippets organized by tags, search across names and descriptions, and copy code to your clipboard with a single click. The collection covers a broad range of common programming tasks, including list and dictionary operations, string formatting and manipulation, date and time calculations, and color format conversion. It also includes utilities for data transformation, such as converting between case styl

    Pythoneducationlearn-to-codelearning-resources
    عرض على GitHub↗8,826
  • jerry-git/learn-python3الصورة الرمزية لـ jerry-git

    jerry-git/learn-python3

    6,754عرض على GitHub↗

    This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured learning path for beginners, teaching fundamental language concepts through a sequence of lessons that combine explanatory text with runnable code cells and embedded practice exercises. Each notebook is a self-contained unit that introduces a topic, demonstrates it with a minimal code example, and then asks the learner to write code themselves, receiving immediate feedback from the browser-based execution environment. The curriculum is built on a progressive concept-stacking mo

    HTMLjupyter-notebooklearning-pythonpython-exercises
    عرض على GitHub↗6,754
  • lunet-io/scribanالصورة الرمزية لـ lunet-io

    lunet-io/scriban

    3,905عرض على GitHub↗

    Scriban is a .NET text templating engine and embedded scripting language used for dynamic text generation. It functions as an abstract syntax tree manipulation tool and a template parser, allowing for the conversion of scripts into visitable trees for analysis, modification, and rendering. The engine is specifically designed for Native AOT compatibility, utilizing a reflection-free API to execute templates in trimmed environments. It also provides a dedicated parser and conversion system for Liquid templates, enabling the migration and execution of Liquid scripts within .NET. The project cov

    C#
    عرض على GitHub↗3,905
  • عرض جميع البدائل الـ 30 لـ Sprig→