PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
//go:build codegen // +build codegen package api import ( "encoding/base64" "encoding/json" "fmt" "reflect" "sort" "strings" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/private/protocol" ) // ShapeValueBuilder provides the logic to build the nested values for a shape. // Base64BlobValues is true if the blob field in shapeRef.Shape.Type is base64 // encoded. type ShapeValueBuilder struct { // Specifies if API shapes modeled as blob types, input values are base64 // encoded or not, and strings values instead. Base64BlobValues bool // The helper that will provide the logic and formated code to convert a // timestamp input value into a Go time.Time. ParseTimeString func(ref *ShapeRef, memberName, v string) string } // NewShapeValueBuilder returns an initialized ShapeValueBuilder for generating // API shape types initialized with values. func NewShapeValueBuilder() ShapeValueBuilder { return ShapeValueBuilder{ParseTimeString: parseUnixTimeString} } // BuildShape will recursively build the referenced shape based on the json // object provided. isMap will dictate how the field name is specified. If // isMap is true, we will expect the member name to be quotes like "Foo". func (b ShapeValueBuilder) BuildShape(ref *ShapeRef, shapes map[string]interface{}, isMap bool) string { order := make([]string, len(shapes)) for k := range shapes { order = append(order, k) } sort.Strings(order) ret := "" for _, name := range order { if name == "" { continue } shape := shapes[name] // If the shape isn't a map, we want to export the value, since every field // defined in our shapes are exported. if len(name) > 0 && !isMap && strings.ToLower(name[0:1]) == name[0:1] { name = strings.Title(name) } memName := name passRef := ref.Shape.MemberRefs[name] if isMap { memName = fmt.Sprintf("%q", memName) passRef = &ref.Shape.ValueRef } switch v := shape.(type) { case map[string]interface{}: ret += b.BuildComplex(name, memName, passRef, ref.Shape, v) case []interface{}: ret += b.BuildList(name, memName, passRef, v) default: ret += b.BuildScalar(name, memName, passRef, v, ref.Shape.Payload == name) } } return ret } // BuildList will construct a list shape based off the service's definition of // that list. func (b ShapeValueBuilder) BuildList(name, memName string, ref *ShapeRef, v []interface{}) string { ret := "" if len(v) == 0 || ref == nil { return "" } passRef := &ref.Shape.MemberRef ret += fmt.Sprintf("%s: %s {\n", memName, b.GoType(ref, false)) ret += b.buildListElements(passRef, v) ret += "},\n" return ret } func (b ShapeValueBuilder) buildListElements(ref *ShapeRef, v []interface{}) string { if len(v) == 0 || ref == nil { return "" } ret := "" format := "" isComplex := false isList := false // get format for atomic type. If it is not an atomic type, // get the element. switch v[0].(type) { case string: format = "%s" case bool: format = "%t" case float64: switch ref.Shape.Type { case "integer", "int64", "long": format = "%d" default: format = "%f" } case []interface{}: isList = true case map[string]interface{}: isComplex = true } for _, elem := range v { if isComplex { ret += fmt.Sprintf("{\n%s\n},\n", b.BuildShape(ref, elem.(map[string]interface{}), ref.Shape.Type == "map")) } else if isList { ret += fmt.Sprintf("{\n%s\n},\n", b.buildListElements(&ref.Shape.MemberRef, elem.([]interface{}))) } else { switch ref.Shape.Type { case "integer", "int64", "long": elem = int(elem.(float64)) } ret += fmt.Sprintf("%s,\n", getValue(ref.Shape.Type, fmt.Sprintf(format, elem))) } } return ret } // BuildScalar will build atomic Go types. func (b ShapeValueBuilder) BuildScalar(name, memName string, ref *ShapeRef, shape interface{}, isPayload bool) string { if ref == nil || ref.Shape == nil { return "" } switch v := shape.(type) { case bool: return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%t", v)) case int: if ref.Shape.Type == "timestamp" { return b.ParseTimeString(ref, memName, fmt.Sprintf("%d", v)) } return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", v)) case float64: dataType := ref.Shape.Type if dataType == "timestamp" { return b.ParseTimeString(ref, memName, fmt.Sprintf("%f", v)) } if dataType == "integer" || dataType == "int64" || dataType == "long" { return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", int(shape.(float64)))) } return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%f", v)) case string: t := ref.Shape.Type switch t { case "timestamp": return b.ParseTimeString(ref, memName, fmt.Sprintf("%s", v)) case "jsonvalue": return fmt.Sprintf("%s: %#v,\n", memName, parseJSONString(v)) case "blob": if (ref.Streaming || ref.Shape.Streaming) && isPayload { return fmt.Sprintf("%s: aws.ReadSeekCloser(strings.NewReader(%q)),\n", memName, v) } if b.Base64BlobValues { decodedBlob, err := base64.StdEncoding.DecodeString(v) if err != nil { panic(fmt.Errorf("Failed to decode string: %v", err)) } return fmt.Sprintf("%s: []byte(%q),\n", memName, decodedBlob) } return fmt.Sprintf("%s: []byte(%q),\n", memName, v) default: return convertToCorrectType(memName, t, v) } default: panic(fmt.Errorf("Unsupported scalar type: %v", reflect.TypeOf(v))) } } // BuildComplex will build the shape's value for complex types such as structs, // and maps. func (b ShapeValueBuilder) BuildComplex(name, memName string, ref *ShapeRef, parent *Shape, v map[string]interface{}) string { switch parent.Type { case "structure": if ref.Shape.Type == "map" { return fmt.Sprintf(`%s: %s{ %s }, `, memName, b.GoType(ref, true), b.BuildShape(ref, v, true)) } else { // Don't try to generate for members not actually modeled in the API if _, ok := parent.MemberRefs[memName]; !ok { return "" } return fmt.Sprintf(`%s: &%s{ %s }, `, memName, b.GoType(ref, true), b.BuildShape(ref, v, false)) } case "map": if ref.Shape.Type == "map" { return fmt.Sprintf(`%q: %s{ %s }, `, name, b.GoType(ref, false), b.BuildShape(ref, v, true)) } else { return fmt.Sprintf(`%s: &%s{ %s }, `, memName, b.GoType(ref, true), b.BuildShape(ref, v, false)) } default: panic(fmt.Sprintf("Expected complex type but received %q", ref.Shape.Type)) } } // GoType returns the string of the shape's Go type identifier. func (b ShapeValueBuilder) GoType(ref *ShapeRef, elem bool) string { if ref.Shape.Type != "structure" && ref.Shape.Type != "list" && ref.Shape.Type != "map" { // Scalars are always pointers. return ref.GoTypeWithPkgName() } prefix := "" if ref.Shape.Type == "list" { ref = &ref.Shape.MemberRef prefix = "[]" } if elem { return prefix + ref.Shape.GoTypeWithPkgNameElem() } return prefix + ref.GoTypeWithPkgName() } // parseJSONString a json string and returns aws.JSONValue. func parseJSONString(input string) aws.JSONValue { var v aws.JSONValue if err := json.Unmarshal([]byte(input), &v); err != nil { panic(fmt.Sprintf("unable to unmarshal JSONValue, %v", err)) } return v } // InlineParseModeledTime returns the string of an inline function which // returns time. func inlineParseModeledTime(format, v string) string { const formatTimeTmpl = `func() *time.Time{ v, err := protocol.ParseTime("%s", "%s") if err != nil { panic(err) } return &v }()` return fmt.Sprintf(formatTimeTmpl, format, v) } // parseUnixTimeString returns a string which assigns the value of a time // member using an inline function Defined inline function parses time in // UnixTimeFormat. func parseUnixTimeString(ref *ShapeRef, memName, v string) string { ref.API.AddSDKImport("private/protocol") return fmt.Sprintf("%s: %s,\n", memName, inlineParseModeledTime(protocol.UnixTimeFormatName, v)) }