1package source
2
3const (
4 name = "GraphQL"
5)
6
7type Source struct {
8 Body []byte
9 Name string
10}
11
12func NewSource(s *Source) *Source {
13 if s == nil {
14 s = &Source{Name: name}
15 }
16 if s.Name == "" {
17 s.Name = name
18 }
19 return s
20}