mirror of
https://github.com/gonum/gonum.git
synced 2025-10-27 01:00:26 +08:00
graph/encoding/dot: refactor quoting docs (#797)
This commit is contained in:
committed by
Robin Eklind
parent
24f0d081ca
commit
bb6edb12aa
@@ -44,9 +44,7 @@ type PortSetter interface {
|
||||
// If the number of graphs encoded in data is not one, an error is returned and
|
||||
// dst will hold the first graph in data.
|
||||
//
|
||||
// Attributes and IDs are quoted if needed during marshalling, to conform with
|
||||
// valid DOT syntax. Quoted IDs and attributes are unquoted during unmarshaling,
|
||||
// so the data is kept in raw form.
|
||||
// Attributes and IDs are unquoted during unmarshalling if appropriate.
|
||||
func Unmarshal(data []byte, dst encoding.Builder) error {
|
||||
file, err := dot.ParseBytes(data)
|
||||
if err != nil {
|
||||
@@ -64,9 +62,7 @@ func Unmarshal(data []byte, dst encoding.Builder) error {
|
||||
// If the number of graphs encoded in data is not one, an error is returned and
|
||||
// dst will hold the first graph in data.
|
||||
//
|
||||
// Attributes and IDs are quoted if needed during marshalling, to conform with
|
||||
// valid DOT syntax. Quoted IDs and attributes are unquoted during unmarshaling,
|
||||
// so the data is kept in raw form.
|
||||
// Attributes and IDs are unquoted during unmarshalling if appropriate.
|
||||
func UnmarshalMulti(data []byte, dst encoding.MultiBuilder) error {
|
||||
file, err := dot.ParseBytes(data)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user