mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
build: reformat comments to pass go1.19 vet
See: https://go.dev/doc/go1.19#go-doc
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
//
|
||||
// Build a shared library like this:
|
||||
//
|
||||
// go build --buildmode=c-shared -o librclone.so github.com/rclone/rclone/librclone
|
||||
// go build --buildmode=c-shared -o librclone.so github.com/rclone/rclone/librclone
|
||||
//
|
||||
// Build a static library like this:
|
||||
//
|
||||
// go build --buildmode=c-archive -o librclone.a github.com/rclone/rclone/librclone
|
||||
// go build --buildmode=c-archive -o librclone.a github.com/rclone/rclone/librclone
|
||||
//
|
||||
// Both the above commands will also generate `librclone.h` which should
|
||||
// be `#include`d in `C` programs wishing to use the library.
|
||||
@@ -59,8 +59,8 @@ func RcloneFinalize() {
|
||||
|
||||
// RcloneRPCResult is returned from RcloneRPC
|
||||
//
|
||||
// Output will be returned as a serialized JSON object
|
||||
// Status is a HTTP status return (200=OK anything else fail)
|
||||
// Output will be returned as a serialized JSON object
|
||||
// Status is a HTTP status return (200=OK anything else fail)
|
||||
type RcloneRPCResult struct { //nolint:deadcode
|
||||
Output *C.char
|
||||
Status C.int
|
||||
@@ -70,10 +70,10 @@ type RcloneRPCResult struct { //nolint:deadcode
|
||||
// and the output is (output, status). This is an exported interface
|
||||
// to the rclone API as described in https://rclone.org/rc/
|
||||
//
|
||||
// method is a string, eg "operations/list"
|
||||
// input should be a string with a serialized JSON object
|
||||
// result.Output will be returned as a string with a serialized JSON object
|
||||
// result.Status is a HTTP status return (200=OK anything else fail)
|
||||
// method is a string, eg "operations/list"
|
||||
// input should be a string with a serialized JSON object
|
||||
// result.Output will be returned as a string with a serialized JSON object
|
||||
// result.Status is a HTTP status return (200=OK anything else fail)
|
||||
//
|
||||
// All strings are UTF-8 encoded, on all platforms.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user