File: xmlrpc.go

package info (click to toggle)
golang-github-kolo-xmlrpc 0%2Bgit20150413.0826b98-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 112 kB
  • ctags: 78
  • sloc: ruby: 18; makefile: 13; xml: 5
file content (19 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package xmlrpc

import (
	"fmt"
)

// xmlrpcError represents errors returned on xmlrpc request.
type xmlrpcError struct {
	code int
	err  string
}

// Error() method implements Error interface
func (e *xmlrpcError) Error() string {
	return fmt.Sprintf("error: \"%s\" code: %d", e.err, e.code)
}

// Base64 represents value in base64 encoding
type Base64 string