Categorygithub.com/oneaudit/go-wpjson
repository
0.0.0-20250215204615-f68bb274e507
Repository: https://github.com/oneaudit/go-wpjson.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

GO WPJSON

A toolkit to parse WordPress Rest API specification.

WPJSON As Library 📚

package main

import (
	"github.com/oneaudit/go-wpjson/pkg/engine"
	"github.com/oneaudit/go-wpjson/pkg/types"
)

func main() {
	options := types.Options{ /*options*/ }
	content, _ := engine.LoadContent(options)
	spec, _ := engine.ParseSpecification(content)
	endpoints, _ := engine.ParseEndpoints(spec)
	// ...
}

WPJSON CLI Usage 🤖

WPJson requires Go 1.23+ to install successfully.

CGO_ENABLED=1 go install github.com/oneaudit/go-wpjson/cmd/go-wpjson@latest
wpjson-go -h

This will display help for the tool. Here are all the switches it supports.

A toolkit to parse WordPress Rest API specification.

Usage:
  wpjson_go [flags]

Flags:
TARGET:
   -t, -target string  target input file or URL to parse

CONFIGURATION:
   -config string  path to the katana-ng configuration file

OUTPUT:
   -o, -output string  output file to save the results
   -silent             display output only
   -v, -verbose        display verbose output
   -debug              display debug output
   -version            display project version