Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[US-207] Remove comment in init function #241

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions table-info/partition_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ import (
"os"
"strconv"

"github.com/unidoc/unipdf/v3/common/license"
"github.com/unidoc/unipdf/v3/extractor"
"github.com/unidoc/unipdf/v3/model"
)

// func init() {
// // Make sure to load your metered License API key prior to using the library.
// // If you need a key, you can sign up and create a free one at https://cloud.unidoc.io
// err := license.SetMeteredKey(os.Getenv(`UNIDOC_LICENSE_API_KEY`))
// if err != nil {
// panic(err)
// }
// }
func main() {
func init() {
// Make sure to load your metered License API key prior to using the library.
// If you need a key, you can sign up and create a free one at https://cloud.unidoc.io
err := license.SetMeteredKey(os.Getenv(`UNIDOC_LICENSE_API_KEY`))
if err != nil {
panic(err)
}
}

func main() {
if len(os.Args) < 3 {
fmt.Printf("Usage: go run partition_text.go inputFile.pdf pageNum\n")
os.Exit(1)
Expand Down
Loading