package
Version:
v0.0.0-...-8d5cf93
Opens a new window with list of versions in this module.
Published: May 3, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
EndpointSnippets = "/v1/snippets"
)
Client represents a ranna snippets client
NewClient creates a new ranna snippets client
Create creates a new ranna code snippet
Snippet requests a code snippet from the ranna snippet service
type Error struct {
Type string `json:"type"`
Title string `json:"title"`
Status int `json:"status"`
TraceID string `json:"traceId"`
}
Error represents a ranna snippets API error
Error stringifies a ranna API error
type Snippet struct {
Ident string `json:"ident"`
Language string `json:"language"`
Code string `json:"code"`
ID string `json:"id"`
RawTimestamp string `json:"timestamp"`
Timestamp time.Time `json:"-"`
}
Snippet represents a ranna code snippet
Source Files
¶
Click to show internal directories.
Click to hide internal directories.