New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More โ†’
Socket
Sign inDemoInstall
Socket

github.com/suapapa/go_postkr

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/suapapa/go_postkr

v0.0.0-20180206025432-55eb0e4e2afd
Source
Go
Version published
Created
Source

About postkr

์ธํ„ฐ๋„ท ์šฐ์ฒด๊ตญ ์˜คํ”ˆAPI๋ฅผ ์œ„ํ•œ Go์–ธ์–ด ํŒจํ‚ค์ง€ ์ž…๋‹ˆ๋‹ค.

ํ˜„์žฌ, ์šฐํŽธ๋ฒˆํ˜ธ, ์ข…์ถ”์ ์กฐํšŒ, EMS ์ค‘ ์šฐํŽธ๋ฒˆํ˜ธ ๊ธฐ๋Šฅ ๋งŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

Documentation

Prerequisites

Install Go

Installation

$ go get github.com/suapapa/go_postkr

General Documentation

godoc.org ๋งํฌ์—์„œ ์˜จ๋ผ์ธ ๋ฌธ์„œ๋ฅผ ๋ณด๊ฑฐ๋‚˜, ๋‹ค์Œ ๋ช…๋ น์œผ๋กœ ๋กœ์ปฌ์—์„œ ๋ฌธ์„œ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

go doc github.com/suapapa/go_postkr

Example

postkr์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด, ์ธํ„ฐ๋„ท ์šฐ์ฒด๊ตญ์˜ ์˜คํ”ˆAPI์‚ฌ์šฉ์‹ ์ฒญ์„ ํ†ตํ•ด ํ‚ค๋ฅผ ๋ฐœ๊ธ‰ ๋ฐ›์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋ฐœ๊ธ‰๋ฐ›์€ ํ‚ค๋ฅผ ์•„๋ž˜ ์ฝ”๋“œ์˜ yourKey ๋ณ€์ˆ˜์— ํ• ๋‹นํ•˜์„ธ์š”.

package main

import (
        "fmt"
        "github.com/suapapa/go_postkr"
)

func main() {
        // ๋ฐœ๊ธ‰๋ฐ›์€ ์˜คํ”ˆAPI ํ‚ค๋กœ ๋ฐ”๊พธ์„ธ์š”
        yourKey := "abcedfghijklmnopqrstuvwxyz1234"

        s := postkr.NewService(yourKey)
        l, err := s.SerchZipCode("๋‚ด๊ณก๋™")
        if err != nil {
                fmt.Println(err)
                return
        }

        for _, p := range l {
                fmt.Printf("(%s) %s\n", p.Code, p.Address)
        }
}

์‹คํ–‰ ๊ฒฐ๊ณผ

$ go run postkr.go
(137180) ์„œ์šธ ์„œ์ดˆ๊ตฌ ๋‚ด๊ณก๋™
(412260) ๊ฒฝ๊ธฐ ๊ณ ์–‘์‹œ ๋•์–‘๊ตฌ ๋‚ด๊ณก๋™
(210160) ๊ฐ•์› ๊ฐ•๋ฆ‰์‹œ ๋‚ด๊ณก๋™
(210701) ๊ฐ•์› ๊ฐ•๋ฆ‰์‹œ ๋‚ด๊ณก๋™ ๊ด€๋™๋Œ€
...

Author

Homin Lee <homin.lee@suapapa.net>

Copyright (c) 2012, Homin Lee. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

FAQs

Package last updated on 06 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts