(source schemaSource, path string, data []byte)
| 43 | } |
| 44 | |
| 45 | func newSchemaFile(source schemaSource, path string, data []byte) schemaFile { |
| 46 | sum := sha256.Sum256(data) |
| 47 | return schemaFile{Name: source.label, Path: path, SHA256: hex.EncodeToString(sum[:])} |
| 48 | } |
| 49 | |
| 50 | func newChecker(progress io.Writer) *checker { |
| 51 | return &checker{progress: progress} |