Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 502 Bytes

Readme.md

File metadata and controls

34 lines (26 loc) · 502 Bytes

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)
}