Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RFC ¶
type RFC struct {
Series string `json:"series,omitempty"`
Number string `json:"number,omitempty"`
Howpublished string `json:"howpublished,omitempty"`
Publisher string `json:"publisher,omitempty"`
Doi string `json:"doi,omitempty"`
URL string `json:"url,omitempty"`
Author string `json:"author,omitempty"`
Title string `json:"title,omitempty"`
Pagetotal string `json:"pagetotal,omitempty"`
Year string `json:"year,omitempty"`
Month string `json:"month,omitempty"`
Day string `json:"day,omitempty"`
Abstract string `json:"abstract,omitempty"`
Body string `json:"body,omitempty"`
}
rfc holds the text body of the requested RFC and the metadata concerning the RFC
func Get ¶ added in v1.3.0
GetRFC fetches the RFC and RFC Metadata by number
Example ¶
package main
import (
"fmt"
"github.com/TWolfis/ietfrfc"
)
func main() {
number := 2328
// Get
rfc, err := ietfrfc.Get(number)
if err != nil {
fmt.Println(err)
return
}
// Print RFC Body
fmt.Println(rfc.Body)
}
Output:
Click to show internal directories.
Click to hide internal directories.