diff options
Diffstat (limited to 'kbbi.go')
| -rw-r--r-- | kbbi.go | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +// Copyright 2020, Shulhan <m.shulhan@gmail.com>. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +// Package kbbi is Go client for Kamus Besar Bahasa Indonesia at +// kbbi.kemdikbud.go.id. +// +package kbbi + +const ( + hostname = "kbbi.kemdikbud.go.id" + baseURL = "https://" + hostname + loginURL = baseURL + "/Account/Login" + entriURL = "/entri/" + + attrNameHref = "href" + attrNameName = "name" + attrNameValue = "value" + + headerNameContentType = "Content-Type" + headerValueContentType = "application/x-www-form-urlencoded" + + elementTypeAnchor = "a" + elementTypeInput = "input" + + paramNameIngatSaya = "IngatSaya" + paramNameKataSandi = "KataSandi" + paramNameMasukan = "masukan" + paramNameMasukanLengkap = "masukanLengkap" + paramNamePage = "page" + paramNamePosel = "Posel" + paramNameRequestVerificationToken = "__RequestVerificationToken" + + paramValueDasar = "dasar" + paramValueFalse = "false" +) |
