gomodifytags

package
v0.0.0-...-da4b49c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 20 Imported by: 0

README

forked from https://github.com/fatih/gomodifytags@v1.3.0

modified:

  • enabling the code used as library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefault_Content

func AddDefault_Content(content string, structName string, fieldName string, defaultValue string) (string, error)

func AddDefault_File

func AddDefault_File(fileName string, structName string, fieldName string, defaultValue string) error

func AddValidate_Content

func AddValidate_Content(content string, structName string, fieldName string, validationRuleTag []string) (string, error)

func AddValidate_File

func AddValidate_File(fileName string, structName string, fieldName string, validationRuleTag []string) error

func OverrideJSON_Content

func OverrideJSON_Content(content string, structName string, fieldName string, jsonName string, withOmitEmpty bool) (string, error)

func OverrideJSON_File

func OverrideJSON_File(fileName string, structName string, fieldName string, jsonName string, withOmitEmpty bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL