Skip to content

sjunepark/hwp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hwp

한글과컴퓨터 문서(.hwp)와 상호작용하기 위한 Golang Library 입니다.

설치

go get github.com/sjunepark/hwp

사용법

package main

import (
	"fmt"
	"github.com/sjunepark/hwp/pkg/parser"
	"github.com/sjunepark/hwp/pkg/reader"
)

func main() {
	raw, encrypted, err := reader.Read("data/example.hwp")
	if err != nil {
		fmt.Println(err)
	}
	if encrypted {
		fmt.Println("Document is encrypted")
	}

	doc := parser.Parse(raw)
	fmt.Println(doc)
}