Permalink
Browse files

rename gopc to opc

  • Loading branch information...
qmuntal committed Feb 5, 2019
1 parent 48795d2 commit 8690a898595e0a273ecdbe4db367a3b0e65d74a1
Showing with 30 additions and 29 deletions.
  1. +1 −1 .travis.yml
  2. +9 −9 README.md
  3. +1 −1 errors.go
  4. +1 −1 errors_test.go
  5. +4 −4 example_test.go
  6. +1 −1 go.mod
  7. +1 −0 go.sum
  8. +2 −2 package.go
  9. +1 −1 package_test.go
  10. +1 −1 part.go
  11. +1 −1 part_test.go
  12. +1 −1 reader.go
  13. +1 −1 reader_test.go
  14. +1 −1 relationship.go
  15. +1 −1 relationship_test.go
  16. +1 −1 writer.go
  17. +1 −1 writer_test.go
  18. +1 −1 zip_reader.go
@@ -1,7 +1,7 @@


language: go
go_import_path: github.com/qmuntal/gopc
go_import_path: github.com/qmuntal/opc

go:
- 1.10.x
@@ -1,12 +1,12 @@
[![Documentation](https://godoc.org/github.com/qmuntal/gopc?status.svg)](https://godoc.org/github.com/qmuntal/gopc)
[![Build Status](https://travis-ci.org/qmuntal/gopc.svg?branch=master)](https://travis-ci.org/qmuntal/gopc)
[![Go Report Card](https://goreportcard.com/badge/github.com/qmuntal/gopc)](https://goreportcard.com/report/github.com/qmuntal/gopc)
[![codecov](https://coveralls.io/repos/github/qmuntal/gopc/badge.svg)](https://coveralls.io/github/qmuntal/gopc?branch=master)
[![codeclimate](https://codeclimate.com/github/qmuntal/gopc/badges/gpa.svg)](https://codeclimate.com/github/qmuntal/gopc)
[![Documentation](https://godoc.org/github.com/qmuntal/opc?status.svg)](https://godoc.org/github.com/qmuntal/opc)
[![Build Status](https://travis-ci.org/qmuntal/opc.svg?branch=master)](https://travis-ci.org/qmuntal/opc)
[![Go Report Card](https://goreportcard.com/badge/github.com/qmuntal/opc)](https://goreportcard.com/report/github.com/qmuntal/opc)
[![codecov](https://coveralls.io/repos/github/qmuntal/opc/badge.svg)](https://coveralls.io/github/qmuntal/opc?branch=master)
[![codeclimate](https://codeclimate.com/github/qmuntal/opc/badges/gpa.svg)](https://codeclimate.com/github/qmuntal/opc)
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)

# gopc
Package gopc implements the ISO/IEC 29500-2, also known as the [Open Packaging Convention](https://en.wikipedia.org/wiki/Open_Packaging_Conventions).
# opc
Package opc implements the ISO/IEC 29500-2, also known as the [Open Packaging Convention](https://en.wikipedia.org/wiki/Open_Packaging_Conventions).

The Open Packaging specification describes an abstract model and physical format conventions for the use of XML, Unicode, ZIP, and other openly available technologies and specifications to organize the content and resources of a document within a package.

@@ -19,10 +19,10 @@ The OPC is the foundation technology for many new file formats: .docx, .pptx, .x
f, _ := os.Create("example.xlsx")
// Create a new OPC archive.
w := gopc.NewWriter(f)
w := opc.NewWriter(f)
// Create a new OPC part.
name := gopc.NormalizePartName("docs\\readme.txt")
name := opc.NormalizePartName("docs\\readme.txt")
part, _ := w.Create(name, "text/plain")
// Write content to the part.
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"fmt"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"testing"
@@ -1,21 +1,21 @@
package gopc_test
package opc_test

import (
"bytes"
"log"

"github.com/qmuntal/gopc"
"github.com/qmuntal/opc"
)

func ExampleWriter() {
// Create a buffer to write our archive to.
buf := new(bytes.Buffer)

// Create a new OPC archive.
w := gopc.NewWriter(buf)
w := opc.NewWriter(buf)

// Create a new OPC part.
name := gopc.NormalizePartName("docs\\readme.txt")
name := opc.NormalizePartName("docs\\readme.txt")
part, err := w.Create(name, "text/plain")
if err != nil {
log.Fatal(err)
2 go.mod
@@ -1 +1 @@
module github.com/qmuntal/gopc
module github.com/qmuntal/opc
1 go.sum
@@ -0,0 +1 @@
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
@@ -1,11 +1,11 @@
// Package gopc implements the ISO/IEC 29500-2, also known as the "Open Packaging Convention".
// Package opc implements the ISO/IEC 29500-2, also known as the "Open Packaging Convention".
//
// The Open Packaging specification describes an abstract model and physical format conventions for the use of
// XML, Unicode, ZIP, and other openly available technologies and specifications to organize the content and
// resources of a document within a package.
//
// The OPC is the foundation technology for many new file formats: .docx, .pptx, .xlsx, .3mf, .dwfx, ...
package gopc
package opc

import (
"encoding/xml"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"bytes"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"mime"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"testing"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"io"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"bytes"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"encoding/xml"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"bytes"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"archive/zip"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"archive/zip"
@@ -1,4 +1,4 @@
package gopc
package opc

import (
"archive/zip"

0 comments on commit 8690a89

Please sign in to comment.