This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / tempformatPatch.go
796 B 33 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.git.temp.formatPatch 6 7import ( 8 "bytes" 9 "context" 10 11 "github.com/bluesky-social/indigo/lex/util" 12) 13 14const ( 15 GitTempFormatPatchNSID = "sh.tangled.git.temp.formatPatch" 16) 17 18// GitTempFormatPatch calls the XRPC method "sh.tangled.git.temp.formatPatch". 19// 20// repo: DID of the repository 21func GitTempFormatPatch(ctx context.Context, c util.LexClient, from string, repo string, to string) ([]byte, error) { 22 buf := new(bytes.Buffer) 23 24 params := map[string]interface{}{} 25 params["from"] = from 26 params["repo"] = repo 27 params["to"] = to 28 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.formatPatch", params, nil, buf); err != nil { 29 return nil, err 30 } 31 32 return buf.Bytes(), nil 33}