New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/spurtcms/forms-builders

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/spurtcms/forms-builders

  • v0.0.22
  • Source
  • Go
  • Socket score

Version published
Created
Source

forms-builders

Installation

go get github.com/spurtcms/forms-builders 

Usage Example

import (
	"github.com/spurtcms/auth"
	"github.com/spurtcms/forms-builders"
)

func main() {

	Auth := auth.AuthSetup(auth.Config{
		UserId:     1,
		ExpiryTime: 2,
		SecretKey:  "SecretKey@123",
		DB: &gorm.DB{},
		RoleId: 1,
	})

	token, _ := Auth.CreateToken()

	Auth.VerifyToken(token, SecretKey)

	permission, _ := Auth.IsGranted("Forms Builder", auth.CRUD, 1)

	Forms := FormSetup(Config{
		DB:               db,
		AuthEnable:       true,
		PermissionEnable: true,
		Auth:             Auth,
	})

	if permisison {

		//list forms-builders
		Formlist, TotalFormsCount, responseCount, err := Forms.FormBuildersList(10, 0, Filter{}, 1, 1)

		if err != nil {
			fmt.Println(err)
		}

		//create forms-builders
		err := Forms.CreateForms(tblForm)
		if err != nil {
			fmt.Println(err)
		}

		//update forms-builders
		err := Forms.UpdateForms(tblForm, 1)
		if err != nil {
			fmt.Println(err)
		}

		// delete forms-builders
		err := Forms.Formdelete(10, 2, 1)
		if err != nil {
			fmt.Println(err)
		}
	}
}

Getting help

If you encounter a problem with the package,please refer [Please refer [(https://www.spurtcms.com/documentation/cms-admin)] or you can create a new Issue in this repo[https://github.com/spurtcms/forms-builders/issues].

FAQs

Package last updated on 04 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc